Skip Menu |

This queue is for tickets about the POE CPAN distribution.

Report information
The Basics
Id: 29833
Status: resolved
Worked: 10 min
Priority: 0/
Queue: POE

People
Owner: BINGOS [...] cpan.org
Requestors: bohica [...] ntlworld.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.9999
Fixed in: (no value)



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
Hi, Thanks for reporting this. The POE documentation is undergoing an overhaul at the moment and I have checked and this documentation 'bug' has been resolved. Many thanks, Chris 'BinGOs' Williams