Re: [exim-dev] can waitpid() fail?

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Marc Haber
Datum:  
To: exim-dev
Betreff: Re: [exim-dev] can waitpid() fail?
Hi Philip,

thanks for considering.

On Fri, Mar 11, 2005 at 02:14:27PM +0000, Philip Hazel wrote:
> If the child has already finished, waitpid will return its pid
> immediately.


Only if the child has not yet been reaped by something else.

> Er wait, I *can* see how it can go wrong. If fork() fails ...
>
> Noted.


Thanks.

There is also similar code in src/deliver.c where the error checking
looks like it is not done as consequently as it should be.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835