X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Fri, 24 Apr 2009 09:52:39 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: pstree on windows xp - find process spawned from windows process Message-ID: <20090424075239.GA8722@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <23197461 DOT post AT talk DOT nabble DOT com> <49F0B2B9 DOT 7000804 AT cygwin DOT com> <23205009 DOT post AT talk DOT nabble DOT com> <49F0E6B3 DOT 7030607 AT cygwin DOT com> <49F125A2 DOT 20400 AT cygwin DOT com> <23211293 DOT post AT talk DOT nabble DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <23211293.post@talk.nabble.com> User-Agent: Mutt/1.5.19 (2009-02-20) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Apr 24 00:27, nachum wrote: > Regarding forking - you can see from my first post that bitgen is spawning a > new process / PID and there is no way that I've found within cygwin to > identify which program is the parent of the new fork. PID 504 is the new Sure. It's a native Windows process, not a Cygwin process. For Cygwin to keep track of processes the parent has to call the POSIX functions fork/exec, not the native Windows call CreateProcess. The Win32 API has no functions to identify a parent/child relationship between processes, btw. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/