Evaluate /proc/$PID/{root,cwd,cmdline} for native processes

* pinfo.cc (_pinfo::root): Fake default root for native processes.
	(open_commune_proc_parms): New helper function to access process
	parameter block.
	(_pinfo::cwd): Fetch missing cwd for native processes from processes
	parameter block.
	(_pinfo::cmdline): Ditto for command line.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2015-06-08 21:48:13 +02:00
parent 79511853f7
commit 575ec00a43
3 changed files with 94 additions and 3 deletions

View File

@@ -12,3 +12,7 @@ Bug Fixes
- Fix installing newly added bind mounts with `mount -a'.
Addresses: https://cygwin.com/ml/cygwin/2015-06/msg00150.html
- Add missing evaluation of /proc/$PID/{root,cwd,cmdline} for native processes.
Addresses: https://cygwin.com/ml/cygwin/2015-06/msg00173.html