Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Thu, 15 Sep 2005 12:29:09 -0400
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: problem with getppid()
Message-ID: <20050915162909.GA26386@trixie.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
References: <Pine.LNX.4.63.0509150809440.23407@zeno1.math.washington.edu> <20050915153358.GW5555@calimero.vinschen.de> <Pine.LNX.4.63.0509150838370.24252@zeno1.math.washington.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.LNX.4.63.0509150838370.24252@zeno1.math.washington.edu>
User-Agent: Mutt/1.5.8i

On Thu, Sep 15, 2005 at 09:18:10AM -0700, Eduardo Chappa wrote:
>The problem I have is that when Pine gets ppid == 1 it exits, and this
>is checked after a timeout for a select() command, which makes it very
>hard to debug pine under gdb.

If your program looked like this:

    47 int ppid = getppid ();
    48
    49 some c statement;

You could:

  % gdb pine
  (gdb) b 49
  (gdb) continue
  .
  .
  .
  (gdb) set var ppid = whatever
  (gdb) continue

The above is just a suggestion and is not a 100% accurate representation
of what needs to be done, of course.

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/

