Skip Menu |

This queue is for tickets about the POE CPAN distribution.

Report information
The Basics
Id: 19529
Status: resolved
Priority: 0/
Queue: POE

People
Owner: RCAPUTO [...] cpan.org
Requestors: skendric [...] fhcrc.org
Cc:
AdminCc:

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



Subject: POE::Resource::Signals::_data_sig_initialize() overwrites signal handles (if just with IGNORE/DEFAULT)
Date: 22 May 2006 14:07:57 -0700
To: poe [...] perl.org, perl-poe [...] moderators.isc.org
From: "sbk" <skendric [...] fhcrc.org>
hi, i'm realizing that loading POE replaces my signal handlers is there a way around this? i rather like my signal handlers ... :) they perform useful chores, like clean up shared memory segments. of course, i rather like POE, too ... it does useful things for me ... naturally, i want both! --sk stuart kendrick fhcrc guru% cat test #!/opt/vdops/bin/perl use strict; use warnings; use sigtrap 'handler' => \&shut_down, 'normal-signals'; use sigtrap 'handler' => \&shut_down, 'error-signals'; use POE; while (1) { sleep 60; } sub shut_down { die "yay!"; } guru%./test [hit Ctrl-C here] guru% whereas if i remove the 'use POE;' line, i see the following: guru%./test yay! at ./test line 13. guru%
Thanks for the test case. I've applied a fix as revision 1980, and it'll be public in the next release.