1.3.20 : getpgid returns pid != -1 when specified pid no longer exists

gavin bowlby gavin_bowlby@yahoo.com
Wed Apr 2 03:06:00 GMT 2003


$ 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

gavin_bowlby@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/



More information about the Cygwin mailing list