This is the mail archive of the
mailing list for the Cygwin project.
Re: 1.7.9-1: kill( pid, 0 ) on child before waitpid returns -1.
- From: Andy Koppe <andy dot koppe at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 2 Apr 2011 15:12:44 +0100
- Subject: Re: 1.7.9-1: kill( pid, 0 ) on child before waitpid returns -1.
- References: <20110402124606.GA6475@vegeta.utgard.biz>
2011/4/2 Marcin Konarski:
> Subject says it all.
Nope, it doesn't actually. Explaining why it's wrong would have been
nice. Here's the relevant bit from POSIX:
"Existing implementations vary on the result of a kill() with pid
indicating an inactive process (a terminated process that has not been
waited for by its parent). Some indicate success on such a call
(subject to permission checking), while others give an error of
[ESRCH]. Since the definition of process lifetime in this volume of
IEEE Std 1003.1-2001 covers inactive processes, the [ESRCH] error as
described is inappropriate in this case."
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple