http://qs1969.pair.com?node_id=741155


in reply to Re: Problem timing out XML::LibXML parsing
in thread Problem timing out XML::LibXML parsing

The other thing that you can do, which is also documented in perlipc, is to use POSIX::sigaction() to set your handler, which has the advantage of only invoking the "unsafe" behavior for that particular SIGALRM and not for any signal your app might catch, ever. You decide whether that sounds worth your time or not :)