delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/24/10:44:03

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
Date: Tue, 24 May 2005 10:43:32 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: problems in Perl process management
Message-ID: <20050524144332.GD3120@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <55E0A3E94323974F83CFC5AAB96F68B80149C9AA AT snnexc03 DOT in DOT ce DOT com DOT au>
Mime-Version: 1.0
In-Reply-To: <55E0A3E94323974F83CFC5AAB96F68B80149C9AA@snnexc03.in.ce.com.au>
User-Agent: Mutt/1.5.8i

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/

- Raw text -


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