From: John Carter Date: 2007-03-16T09:24:31+09:00 Subject: Re: Why does popen3 fork a grandchild? On Fri, 16 Mar 2007, Clifford Heath wrote: > It orphans the child process, so its parent doesn't need to clean > it up when it dies. Instead, the process is adopted by "init", > which is process-id 1, which takes responsibility for the cadaver. Thanks for the substantive reply, saves me the bother of doing a poorer one... > All this was thoroughly examined by Dave Lennert in his classic > 1987 posting entitled "How to write a Unix Daemon" to the HP > internal newsgroup "hp.unix", which I archived and still have. > The paper was also published in ";login:", Volume 12 No 4, > July/August 1987. The paper seems rather hard to find online now. Can you post a link, or email me a copy? Thanks John Carter Phone : (64)(3) 358 6639 Tait Electronics Fax : (64)(3) 359 4632 PO Box 1645 Christchurch Email : john.carter@tait.co.nz New Zealand