problem with getppid()

Christopher Faylor cgf-no-personal-reply-please@cygwin.com
Thu Sep 15 17:08:00 GMT 2005


On Thu, Sep 15, 2005 at 09:54:01AM -0700, Eduardo Chappa wrote:
>*** Christopher Faylor (pcgf-no-personal-reply-please@cygwin.cometh) wrote...:
>
>:) If your program looked like this:
>:) [removed some sample code, etc]
>:) 
>:) The above is just a suggestion and is not a 100% accurate 
>:) representation of what needs to be done, of course.
>
>Right, if this was just my case I could do this (not nice, but could do 
>it). In my case I need to modify the source code every time I build it, 
>and since it is a modification to work around a problem in cygwin, I was 
>hoping that cygwin could be modified so that it would do the right thing, 
>as it normally does.

Btw, if you don't actually care about the ppid value being a real pid,
you could add something like this to the list of gdb commands:

  (gdb) command 1
  End with a line saying just "end"
  set var ppid = 1234
  continue
  end

so that ppid would be set automatically.

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/



More information about the Cygwin mailing list