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

[no subject]



    Jonathan> Anyone know the proper way to handle the death of all
    Jonathan> these child processes?  If I run a 'ps -aef' on the box
    Jonathan> while the script is running, I see dozens of '<defunct>'
    Jonathan> processes.

If you're doing forks you need to make sure you've got a SIGCHLD
handler setup to wait for them all.  The canonical example's in
perldoc perlipc; just search for "sub REAPER".  Otherwise those defunc
processes will hang around until your process exits and they get
reparented to init (which will then reap them).

-- 
Fletch                | "If you find my answers frightening,       __`'/|
fletch at phydeaux.org|  Vincent, you should cease askin'          \ o.O'
                      |  scary questions." -- Jules                =(___)=
                      |                                               U


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00902" href="msg00902.html">[ale] Any Perl Gurus Out There?</a></strong>
<ul><li><em>From:</em> jonathan.glass at oit.gatech.edu (Jonathan Glass)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00905.html">[ale] Any Perl Gurus Out There?</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00907.html">[ale] Any Perl Gurus Out There?</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00907.html">[ale] Any Perl Gurus Out There?</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00908.html">[ale] Any Perl Gurus Out There?</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00906"><strong>Date</strong></a></li>
<li><a href="threads.html#00906"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>