Thanks for your reply. Actually, They are done printing all they have to. "Done! pid = 0" is the last statement before exit(0) for the child. I'm not sure.. what is stoping from exiting Parent forked child # ===> 0, pid = 6382 Parent forked child # ===> 1, pid = 6383 Parent forked child # ===> 2, pid = 6384 started all children 2 Argument "CHLD" isn't numeric in subroutine entry at /usr/lib/perl5/5.6.1/i386-linux/POSIX.pm line 38. Child 0 in sched This is Msg1 Done! pid = 0 Argument "CHLD" isn't numeric in subroutine entry at /usr/lib/perl5/5.6.1/i386-linux/POSIX.pm line 38. Argument "CHLD" isn't numeric in subroutine entry at /usr/lib/perl5/5.6.1/i386-linux/POSIX.pm line 38. Child 0 in sched This is Msg3 Done! pid = 0 Child 0 in sched This is Msg2 Done! pid = 0 Argument "CHLD" isn't numeric in subroutine entry at /usr/lib/perl5/5.6.1/i386-linux/POSIX.pm line 38. Process 6384 exited When I do ps -ef, I can see the parent and 2 of its children hanging. Not sure what to make of that. /opt/jyo/ > ps -ef | grep perl root 6381 4559 98 15:15 pts/0 00:11:56 perl jfork.pl root 6382 6381 0 15:15 pts/0 00:00:00 perl <defunct> root 6383 6381 0 15:15 pts/0 00:00:00 perl <defunct>

In reply to Re^2: need help with Hanging Child Processes by jyoshv
in thread need help with Hanging Child Processes by jyoshv

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.