Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jan 2002 23:25:46 +0100
From:      Stefan Esser <se@freebsd.org>
To:        John Rochester <john@jrochester.org>
Cc:        hackers@FreeBSD.ORG, Stefan Esser <se@freebsd.org>
Subject:   Re: Re: userland program panics freebsd 4.3
Message-ID:  <20020101232546.A40539@StefanEsser.FreeBSD.org>
In-Reply-To: <3C32150C.7000504@jrochester.org>
References:  <20011231165828.D2301@StefanEsser.FreeBSD.org> <200112311631.fBVGVtZ45017@scanner.secnap.net> <20020101203614.A11265@StefanEsser.FreeBSD.org> <3C32150C.7000504@jrochester.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-01-01 19:59 +0000, John Rochester <john@jrochester.org> wrote:
> Stefan Esser wrote:
> 
> >Instead of the for loop, I'd rather have:
> >
> > while(waitpid(pid, NULL, WNOHANG) == EINTR)
> >
> This should be
> 
> while (waitpid(pid, NULL, WNOHANG) < 0 && errno == EINTR)

Yes, obviously ... ;-)

STefan

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020101232546.A40539>