in reply to Re: Handle SIGHUP with AnyEvent
in thread Handle SIGHUP with AnyEvent

Doesn't work for me. Running your script as is, it exits with "Terminated: 15" when sending it a SIGHUP. I came across this thread when I couldn't catch SIGALRM using AnyEvent with the EV loop, and had to resort to using a plain old perl signal handler.