Re: problem with getppid()

2005-09-15 Thread Corinna Vinschen
On Sep 15 10:08, Eduardo Chappa wrote: > *** Corinna Vinschen ([EMAIL PROTECTED]) wrote in the cygwin...: > > :) On Sep 15 09:18, Eduardo Chappa wrote: > :) > The problem I have is that when Pine gets ppid == 1 it exits [...] > :) > :) That's a bug in pine. It means, you can't run pine from cm

Re: problem with getppid()

2005-09-15 Thread Eduardo Chappa
*** Corinna Vinschen ([EMAIL PROTECTED]) wrote in the cygwin...: :) On Sep 15 09:18, Eduardo Chappa wrote: :) > The problem I have is that when Pine gets ppid == 1 it exits [...] :) :) That's a bug in pine. It means, you can't run pine from cmd.exe, resp. :) command.com. Corinna, I can ru

Re: problem with getppid()

2005-09-15 Thread Christopher Faylor
On Thu, Sep 15, 2005 at 09:54:01AM -0700, Eduardo Chappa wrote: >*** Christopher Faylor ([EMAIL PROTECTED]) 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 b

Re: problem with getppid()

2005-09-15 Thread Corinna Vinschen
On Sep 15 09:18, Eduardo Chappa wrote: > The problem I have is that when Pine gets ppid == 1 it exits [...] That's a bug in pine. It means, you can't run pine from cmd.exe, resp. command.com. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project

Re: problem with getppid()

2005-09-15 Thread Eduardo Chappa
*** Christopher Faylor ([EMAIL PROTECTED]) 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 (no

Re: problem with getppid()

2005-09-15 Thread Christopher Faylor
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 = getppi

Re: problem with getppid()

2005-09-15 Thread Eduardo Chappa
*** Corinna Vinschen ([EMAIL PROTECTED]) wrote in the cygwin...: :) > 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 us

Re: problem with getppid()

2005-09-15 Thread Corinna Vinschen
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 n

problem with getppid()

2005-09-15 Thread Eduardo Chappa
Hello, I have a problem runing the following program "test.c" -- #include #include #include main() { int p; if((p = getppid()) == 1) printf("My parent is bad, ppid=%d\n", p); else printf("My parent is good, ppid=%d\n", p); exit(0); } I build the program with