tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Detecting parent's termination

On Sun, 29 Jan 2012 13:41:41 +0100 (Emmanuel Dreyfus) wrote:

> What way do we have to detect parent termination? 

Use a pipe.  select(2) returns an error if the writer has closed its
end.  See line 739 at

Unlike the Linux-only choice, that code runs in many different
OSes.  :-)



Home | Main Index | Thread Index | Old Index