die/END blocks and AE::MP

gleeco gleeco at gmail.com
Wed Jul 14 18:30:45 CEST 2010


marc - using AE::MP and am getting an error you may [ not ] have seen.
It's when my code modifies SIG handler in conjunction with and END block

eg, code adds this logic:

$SIG{HUP} = $SIG{INT} = $SIG{TERM} = sub { exit };
END {   warn "goodbye world"; }

...and i see the following error (assumed: AE::MP is up and running
with $NODE and ports):

  Can't call method "unmonitor" on an undefined value at
/opt/....lib/site_perl/5.8.8/AnyEvent/MP.pm line 625 during global
destruction

fwiw, i can't readily be on > 5.8.8 perl and this is AE::MP::VERSION = 1.29

Not really a show-stopper, but if you have thoughts about making the
error go away --including coder rehabilitation programs --bring it.

thx,
-g



More information about the anyevent mailing list