Corinna: Thanks for your suggestion. Sorry I didn't upgrade before reporting this problem. I still see the same problem with 1.3.22.
Here's a console log: >From the parent's perspective: (parent program name is "pglm" parent's pid=1940, child's program name is "pglm", child's pid=1624) getpgid of child pid:1624 returned pid:1940 ============================================== A ps command from another Cygwin shell shows: [EMAIL PROTECTED] /cygdrive/c/cadzilla/pglm $ ps PID PPID PGID WINPID TTY UID STIME COMMAND 1232 1 1232 1232 con 1003 11:56:48 /usr/bin/bash 1964 1 1964 1964 con 1003 11:57:54 /usr/bin/bash 1940 1232 1940 948 con 1003 12:03:35 /cygdrive/c/cadzilla/pgl m/pglm 1624 1940 1940 1624 con 1003 12:03:35 /cygdrive/c/cadzilla/pgl m/pglm 1724 1964 1724 732 con 1003 12:03:52 /usr/bin/ps [EMAIL PROTECTED] /cygdrive/c/cadzilla/pglm $ kill -9 1624 [EMAIL PROTECTED] /cygdrive/c/cadzilla/pglm $ ps PID PPID PGID WINPID TTY UID STIME COMMAND 1232 1 1232 1232 con 1003 11:56:48 /usr/bin/bash 1964 1 1964 1964 con 1003 11:57:54 /usr/bin/bash 1940 1232 1940 948 con 1003 12:03:35 /cygdrive/c/cadzilla/pgl m/pglm 2092 1964 2092 1504 con 1003 12:04:32 /usr/bin/ps =================================================== After the kill -9 1624 is issued, the running parent process continues to output: getpgid of child pid:1624 returned pid:1940 after calls to getpgid with a pid of 1624. [EMAIL PROTECTED] /cygdrive/c/cadzilla/pglm $ uname -a CYGWIN_NT-5.0 reptilicus 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown unknown Cygwin Thanks again for your help, Gavin Bowlby ([EMAIL PROTECTED]) ====================================================== On Tue, Apr 01, 2003 at 07:06:45PM -0800, gavin bowlby wrote: > $ uname -a > CYGWIN_NT-5.0 reptilicus 1.3.20(0.73/3/2) 2003-02-08 > 12:10 i686 unknown unknown > Cygwin Could you test with 1.3.22 please? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin at cygwin dot com Red Hat, Inc. --- gavin bowlby <[EMAIL PROTECTED]> wrote: > $ uname -a > CYGWIN_NT-5.0 reptilicus 1.3.20(0.73/3/2) 2003-02-08 > 12:10 i686 unknown unknown > Cygwin > > Windows 2K box. > > Process A creates Process B. > > I kill Process B with a "kill -9 <process B's pid>" > > Process A then does a: > > sid = getpgid(pid)); > > pid is set to process B's pid > > sid is not returned as -1, even though process B no > longer exists, as can be seen with a "ps" command. > This occurs repeatedly. > > Is this correct behavior? > > Regards, > > Gavin Bowlby > > [EMAIL PROTECTED] > > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - File online, calculators, forms, > and more > http://tax.yahoo.com > __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/