On Wed, Feb 02, 2005 at 03:49:03PM -0500, Dylan Hardison wrote:
> One wonders if:
>
> $SIG{__DIE__} = sub {
> die $_[0] unless defined $^S;
> $poe_kernel->yield('_die');
> };
>
> would work.That has a (possibly) undesirable effect of catching die() when called by POE::Kernel itself. Maybe adding die unless $poe_kernel; die if $poe_kernel->get_active_session() == $poe_kernel; would solve that. -- Rocco Caputo - http://poe.perl.org/
