How can a child detect the death of its parent

Richard Tobin richard at aiai.ed.ac.uk
Thu Jun 13 05:55:33 AEST 1991


In article <1991Jun10.150007.8188 at bmers145.bnr.ca> jasonc at bmerh653.bnr.ca (Jason Chen) writes:
>	Your child will get an EOF from its next read(2) from the
>pipe, after the parent die.

If you want to get a signal, you could have a third process reading from
a pipe connected to the parent.  When the parent exits, the third process
gets EOF, and can send a signal to the child.

-- Richard
-- 
Richard Tobin,                       JANET: R.Tobin at uk.ac.ed             
AI Applications Institute,           ARPA:  R.Tobin%uk.ac.ed at nsfnet-relay.ac.uk
Edinburgh University.                UUCP:  ...!ukc!ed.ac.uk!R.Tobin



More information about the Comp.unix.questions mailing list