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

[no subject]



    Jim> The linux kernel will clean up defunct processes when it has
    Jim> time (low priority).  Most likely your loop is "too tight"
    Jim> and injecting some latency periods will help.  Try adding a
    Jim> "sleep 2;" at the bottom of your loop.

Defunct processes are children which have exited but the parent
process hasn't called some form of wait(2) to retrieve the exit status
yet.  They'll stay around as entries in the process table until
something waits on them.  What normally happens is the parent will
(eventually) call wait itself.  If it doesn't before it exits, any
children will be reparented to init (pid 1) which calls wait and
clears up the entry.  The kernel itself doesn't enter into it aside
from reparenting orphaned processes.
</pedant>

-- 
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>
<li><strong><a name="00903" href="msg00903.html">[ale] Any Perl Gurus Out There?</a></strong>
<ul><li><em>From:</em> jimpop at yahoo.com (Jim Popovitch)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00906.html">[ale] Any Perl Gurus Out There?</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00908.html">[ale] Any Perl Gurus Out There?</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00905.html">[ale] Any Perl Gurus Out There?</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00906.html">[ale] Any Perl Gurus Out There?</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00907"><strong>Date</strong></a></li>
<li><a href="threads.html#00907"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

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