Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Thu, 15 Sep 2005 17:33:58 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: problem with getppid() Message-ID: <20050915153358.GW5555@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i On Sep 15 08:14, Eduardo Chappa wrote: > gdb ./test > (gdb) run > > The output is "My parent is bad". I believe this is a bug in Cygwin's > implementation of getppid(). No, it's not a bug. GDB starts the inferior process using the standard Windows mechanisms since it should be useful also for native debugging. When the inferior process is not started by Cygwin's own fork/exec process, the child process doesn't know anything about its parent process, at least not on Windows 9x. There's a way to retrieve the native parent PID by using NtQueryInformationProcess on NT, but it doesn't seem very useful to get this information. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat, Inc. -- 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/