- or download this
while ( my @ready = $select->can_read()) {
...
};
- or download this
sleep 2; # give time to child process
while ( my @ready = $select->can_read()) {
...
};
- or download this
my @children = get_child_pids(); # fake
while (@children) {
...
@children = get_child_pids(); # fake
sleep 5; # let's see if the remaining children will produce output
};