Date: Tue, 01 Jan 2002 19:59:08 +0000 From: John Rochester <john@jrochester.org> To: Stefan Esser <se@FreeBSD.ORG> Cc: hackers@FreeBSD.ORG Subject: Re: userland program panics freebsd 4.3 Message-ID: <3C32150C.7000504@jrochester.org> References: <20011231165828.D2301@StefanEsser.FreeBSD.org> <200112311631.fBVGVtZ45017@scanner.secnap.net> <20020101203614.A11265@StefanEsser.FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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) > > /* do nothing */; > > return kill(pid, 0) == 0; > -- John Rochester Software Architect, Merus Software Ltd. Tel: +44 7870 174690 http://merus.co.uk 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?3C32150C.7000504>