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
manu%netbsd.org@localhost (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
http://fossies.org/dox/freetds-0.91/tsql_8c_source.html.

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

HTH.

--jkl





Home | Main Index | Thread Index | Old Index