Can a parent process determine its child's status ?
Chris Torek
chris at mimsy.umd.edu
Wed Mar 7 14:51:50 AEST 1990
>In article <5090.25e135aa at mva.cs.liv.ac.uk> adh at mva.cs.liv.ac.uk writes:
>>Unfortunately, a [nonblocking] call to 'read' returns zero if the child
>>hasn't sent any new data *OR* [for EOF]....
In article <2377 at rex.cs.tulane.edu> mb at rex.cs.tulane.edu (Mark Benard) writes:
>If you have BSD, you can use select instead of polling.
If you have BSD, a non-blocking read() will return -1 with errno set to
EWOULDBLOCK; an EOF returns 0 with errno unchanged.
Anyway, the original question (about detecting exited children) has already
been answered.
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain: chris at cs.umd.edu Path: uunet!mimsy!chris
More information about the Comp.unix.questions
mailing list