Web lists-archives.com

ps does not see all processes if used through a junctioned top level cygwin directory in cmd




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?

Thanks,
Sabuj

--
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