tech-userlevel archive

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

Re: Detecting parent's termination



On Sun, Jan 29, 2012 at 01:41:41PM +0100, Emmanuel Dreyfus wrote:
> What way do we have to detect parent termination? Linux has a handy but
> non standard prctl(PR_SET_PDEATHSIG, SIGHUP), do we have something
> similar? 


You can use EVFILT_PROC with NOTE_EXIT for this purpose.

Joerg


Home | Main Index | Thread Index | Old Index