Subject: | Unhandled event + possibly redundant code |
In sub _start {} you got this code:
$kernel->sig_child( $self->{wheel}->PID, '_sig_child' );
Note the 'i' in the 'child'.
However, the handler with ->sig_handled exists only for '_sig_chld'
(note the missing 'i' in 'chld')
Using sub POE::Kernel::ASSERT_DEFAULT () { 1 } reports an unhandled
event '_sig_child'
Also, what I think (and been told that) is a redundant piece of code:
First, we got:
sub spawn {
$self->{session_id} = POE::Session->create(
### ....
)->ID();
}
And then later we got:
sub _start {
$self->{session_id} = $_[SESSION]->ID;
}
To my understanding $self->{session_id} already has an ID from the
spawn() method. If there is nothing wrong with that code I would
definitely love to know the reason for such use.
Cheers.