<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Mar 16, 2009, at 9:53 AM, John Payne wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>The opt_G timeline:<br><br>First patch: <a href="http://www.shrubbery.net/pipermail/tac_plus/2007-October/000158.html">http://www.shrubbery.net/pipermail/tac_plus/2007-October/000158.html</a><br>Second patch to fix defunct processes: <a href="http://www.shrubbery.net/pipermail/tac_plus/2007-October/000163.html">http://www.shrubbery.net/pipermail/tac_plus/2007-October/000163.html</a><br>Third patch to make it work: <a href="http://www.shrubbery.net/pipermail/tac_plus/2008-June/000246.html">http://www.shrubbery.net/pipermail/tac_plus/2008-June/000246.html</a><br><br>Unfortunately, the third patch has started causing defunct processes <br>again.</div></blockquote><br></div><div>This seems to resolve the defunct process issue:</div><div><br></div><div><div>*** tac_plus.c.orig<span class="Apple-tab-span" style="white-space:pre">        </span>2009-03-16 14:05:29.000000000 -0400</div><div>--- tac_plus.c<span class="Apple-tab-span" style="white-space:pre">        </span>2009-03-16 14:05:49.000000000 -0400</div><div>***************</div><div>*** 447,452 ****</div><div>--- 447,457 ----</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span> */</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span> open_logfile();</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div>+ #ifndef REAPCHILD</div><div>+ signal(SIGCHLD, reapchild);</div><div>+ #else</div><div>+ signal(SIGCHLD, SIG_IGN);</div><div>+ #endif /* REAPCHILD */</div><div> }</div><div> </div><div> ostream = NULL;</div><div><br></div><div><br></div><div>Probably a cleaner way, but... it works for me :)</div></div><br></body></html>