Now i feel like i'm walking on very thin ice.

You suggested to set $pm->set_waitpid_blocking_sleep(0);  # true blocking calls enabled.

After setting this in my/your script it seems as it behaves like as expected, right?

You suggest to switch sleep for select( '','','', $timeout ).

I assume that you refer to line 782 of the sources:

sub _waitpid_blocking { my $self = shift; # pseudo-blocking if( my $sleep_period = $self->{waitpid_blocking_sleep} ) { while() { my $pid = $self->_waitpid_non_blocking; return $pid if $pid; sleep $sleep_period; # should be line 782 } } return waitpid -1, 0; }

The author names it $sleep_period instead of $timeout.

Do you mean that sleep $sleep_period should be replaced with select( '','','', $sleep_period )?

I'm sorry if it looks like i got a true block. Please correct me if i'm wrong.

Update: Do'h! It's too late tonight!

Edit: No reason to complain.

Thank you very much for further advice and best regards, Karl

«The Crux of the Biscuit is the Apostrophe»


In reply to Re^6: Useful number of childs revisited by karlgoethebier
in thread Useful number of childs revisited [SOLVED] by karlgoethebier

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.