While i am far from truly knowing much about these things i agree with zentara's statement I think you are confusing defunct processes with threads. I believe defunct process are the result of exec, fork or certain types of system calls. It is those that you have to wait on. I think to solve this problem we will need to see the areas of your code that use those rather than where you start threads.

Someone else more knowledgeable than me will probably also pipe up about the fact that the use of switch is discouraged. While it MAY not be the cause of your current fire you may want to look into ways to replace its use with more "modern" perl code


In reply to Re: defunct process are WAY beyond my experienc by huck
in thread defunct process are WAY beyond my experienc by cristj1

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.