- or download this
[task_result] Child process in wheel 8 wrote to STDOUT: HASH(0x9b22c94
+)
[task_result] Result for cmd: 32240\Kb (1.5%).
...
[on_child] We have lost our children! (POE::Session=ARRAY(0x9adb2e8))
[bot_stop] Stopping.
Can't call method "PID" on an undefined value at ./cookbot.pl line 169
+4.
- or download this
# handler for child processes (forking job server)
$kernel->sig( CHLD => "task_close" );
- or download this
my $task = POE::Wheel::Run->new(
Program => sub { &{$this_code} },
...
CloseEvent => 'task_close', # Child closed all output handle
+s.
);
$heap->{task}->{ $task->ID } = $task;
- or download this
# Child close event
sub task_close {
...
print "[task_close] Child ", $child->PID, " has finished.\n";
$child = delete $heap->{task}->{$wheel_id};
}