This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ps does not see all processes if used through a junctioned top level cygwin directory in cmd
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Sabuj Pattanayek <sabujp at gmail dot com>, cygwin at cygwin dot com
- Date: Thu, 25 Jan 2018 20:28:34 +0300
- Subject: Re: ps does not see all processes if used through a junctioned top level cygwin directory in cmd
- Authentication-results: sourceware.org; auth=none
- Authentication-results: smtp2j.mail.yandex.net; dkim=pass header.i=@yandex.ru
- References: <CAEeMGHuJMJPeT=bc6=bhMOKv_V0dUvYhyvAGUsknJHG-_TjjUQ@mail.gmail.com>
- Reply-to: cygwin at cygwin dot com
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