Subject: | incorrect documentation wrt to arguments passed to signal handler |
I use:
$_[KERNEL]->sig( 'DIE', 'signal' );
in my _start handler and a 'signal' event with handler. When I use
Perl's die method in another handler the signal handler is called but
arg0 is 'DIE' and arg1 is a hash ref. This appears to contradict:
http://search.cpan.org/~rcaputo/POE-0.9999/lib/POE/Session.pm#Exceptions
The pod seems to suggest only a single argument is passed to a signal
handler but I appear to be getting 2 as evidenced by:
print "Signal $_[STATE] $_[ARG0]\n";
my $data = $_[ARG1];
print "\tfile=$data->{file}, line=$data->{line},
event=$data->{event}, from_state=$data->{from_state},
error_str=$data->{error_str}\n";
in my signal handler which prints:
Signal signal DIE
file=single.pl, line=50, event=count, from_state=count,
error_str=fred at single.pl line 52.
Martin