delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/25/00:43:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <55E0A3E94323974F83CFC5AAB96F68B80149CB60@snnexc03.in.ce.com.au>
From: Sonam Chauhan <sonam DOT chauhan AT ce DOT com DOT au>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: RE: problems in Perl process management
Date: Wed, 25 May 2005 14:41:28 +1000
MIME-Version: 1.0
X-IsSubscribed: yes

Chris:

> >> >ps -W will also not always properly report on execed processes in
> >>       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >> >general.  Since ps -W uses CW_GETPINFO_FULL,
...
> >Won't it be better fixing this bug, than fixing 'Proc::ProcessTable' and
> > 'ps -W' and all the other programs that uses CW_GETPINFO_FULL?
> 
> There is no reference implementation which would specify that the
> behavior which I noted was incorrect.  "CW_GETPINFO_FULL" was
> implemented for "ps -W".  

So the accurate-reporting-except-for-execed-processes behavior is canonical
in CW_GETPINFO_FULL as of now.

I'd suggest noting this in the man page for 'ps -W' so people know it's true
behavior. Right now, all it says is:
--------------------------------------------
       -W, --windows
              show windows as well as cygwin processes
	...
The  -W option causes  ps show non-Cygwin Windows processes as  well  as
Cygwin  processes
--------------------------------------------

> I don't believe I've ever heard anyone
> complaining about the way this works in "ps -W" or in "all of the other
> programs" which use this.

There's a first time for everything. 

> If you want to submit a patch which changes this behavior, I'll
> certainly review it promptly.  I don't believe that it would be trivial
> to do, however.

I'm not skilled enough, so I'll leave that alone. 

> It seems to me that it would be a lot easier to work around in
> the perl module.

Can you suggest any other CW_... query that would report on PIDs accurately?


Regards,
Sonam

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019