in reply to Re^5: Useful number of childs revisited
in thread Useful number of childs revisited [SOLVED]
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»
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Useful number of childs revisited
by BrowserUk (Patriarch) on May 09, 2015 at 04:34 UTC | |
by karlgoethebier (Abbot) on May 09, 2015 at 12:39 UTC |