ps does not see all processes if used through a junctioned top level cygwin directory in cmd
Andrey Repin
anrdaemon@yandex.ru
Thu Jan 25 17:35:00 GMT 2018
Greetings, Sabuj Pattanayek!
> Hi everyone,
> I'm experiencing a strange issue where ps does not find all the processes
> if it's run from a top level junction to the main cygwin directory in cmd :
> On an older windows install I had cygwin under c:\cygwin64 , this time I
> used chocolatey to install it and it put it under c:\tools\cygwin. To keep
> things consistent so as not to break users I decided to make a junction :
> Directory of C:\
> 01/04/2018 03:01 PM <JUNCTION> cygwin64 [c:\tools\cygwin]
> running ps from cygwin works fine :
> $ ps -p 6376
> PID PPID PGID WINPID TTY UID STIME COMMAND
> 6376 1 6376 5464 pty2 197608 23:52:31
> /cygdrive/c/Windows/system32/cmd
> however running it from the junctioned top level directory does not work :
> C:\>c:\cygwin64\bin\ps -p 6376
> c:\cygwin64\bin\ps -p 6376
> PID PPID PGID WINPID TTY UID STIME COMMAND
> but when launched via the actual path it works properly :
> C:\>c:\tools\cygwin\bin\ps -p 6376
> c:\tools\cygwin\bin\ps -p 6376
> PID PPID PGID WINPID TTY UID STIME COMMAND
> 6376 1 6376 5464 pty2 197608 23:52:31
> /cygdrive/c/Windows/system32/cmd
> any ideas what's causing this?
I have no idea how did you do it, but I'm unable to see Windows processes like
that without -W.
[]$ ps -p 7636
PID PPID PGID WINPID TTY UID STIME COMMAND
[]$ ps -Wp 7636
PID PPID PGID WINPID TTY UID STIME COMMAND
7636 0 0 7636 ? 0 15:47:38 C:\Program Files\Opera\opera.exe
--
With best regards,
Andrey Repin
Thursday, January 25, 2018 20:25:57
Sorry for my terrible english...
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list