… | |
… | |
252 | no warnings; |
252 | no warnings; |
253 | use strict; |
253 | use strict; |
254 | |
254 | |
255 | use Carp; |
255 | use Carp; |
256 | |
256 | |
257 | our $VERSION = '2.7'; |
257 | our $VERSION = '2.9'; |
258 | our $MODEL; |
258 | our $MODEL; |
259 | |
259 | |
260 | our $AUTOLOAD; |
260 | our $AUTOLOAD; |
261 | our @ISA; |
261 | our @ISA; |
262 | |
262 | |
… | |
… | |
378 | our $CHLD_DELAY_W; |
378 | our $CHLD_DELAY_W; |
379 | our $PID_IDLE; |
379 | our $PID_IDLE; |
380 | our $WNOHANG; |
380 | our $WNOHANG; |
381 | |
381 | |
382 | sub _child_wait { |
382 | sub _child_wait { |
383 | while (0 <= (my $pid = waitpid -1, $WNOHANG)) { |
383 | while (0 < (my $pid = waitpid -1, $WNOHANG)) { |
384 | $_->($pid, $?) for (values %{ $PID_CB{$pid} || {} }), |
384 | $_->($pid, $?) for (values %{ $PID_CB{$pid} || {} }), |
385 | (values %{ $PID_CB{0} || {} }); |
385 | (values %{ $PID_CB{0} || {} }); |
386 | } |
386 | } |
387 | |
387 | |
388 | undef $PID_IDLE; |
388 | undef $PID_IDLE; |