This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problems in Perl process management


On Tue, May 24, 2005 at 05:11:00PM +1000, Sonam Chauhan wrote:
>Hi - Asking again since I didn't get a response... 

You got a response before you asked the question.

>>>>demonstrated by my testcase script), the CW_GETPINFO_FULL query
>>>>returns: 1.  Invalid PPIDs
>>>
>>>Only PPIDs for cygwin processes are returned.  Everything else should
>>>be 0.
>
>Both Proc::ProcessTable and 'ps -W' use CW_GETPINFO_FULL.  My Perl
>testcase <*> forks and runs '/bin/sleep' with the Perl backtick
>operator.  Proc::ProcessTable and 'ps -W' then report the following
>about the testcase processes:
>
>1.  PID and PPID of the fork-ed Perl processes -- reported normally.
>2.  PID and PPID of the 'sleep' process -- reported as if it was a
>non-Cygwin process.  i.e.  PID=<WINPID>, PPID=0.
>
>But the 'sleep' process is a "Cygwin process", right?
>
>Does this indicate a bug in CW_GETPINFO_FULL?

Almost a week ago, I wrote:

On Tue, May 17, 2005 at 11:08:29PM -0400, Christopher Faylor wrote:
>ps -W will also not always properly report on execed processes in
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>general.  Since ps -W uses CW_GETPINFO_FULL, you can use that command to
>see what is going on.

i.e., you can't use CW_GETPINFO_FULL to do what you seem to be expecting
to do.

cgf

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]