On Sep 17, 2006, at 12:05 AM, Henri Asseily wrote:
On Sep 16, 2006, at 8:58 PM, Sam Tregar wrote:
On Sat, 16 Sep 2006, Henri Asseily wrote:
Use the great Sys::SigAction by Lincoln Baxter.
That's just a wrapper around POSIX sigaction(), right? As I
understand it that's equivalent to the old unsafe signals in Perl
before 5.8. I'd rather avoid that if it all possible!
One more thing: my experience with Sys::SigAction (i.e. POSIX
sigaction) is very good. I have yet to run into issues as long as I
properly wipe the sth/dbh/... variables after the signal fires. Of
course the strategy of spawning a child process and wiping the whole
thing if the signal fires also works, but it's not really necessary.
It's like using a nuke on a cockroach. But YMMV...
H