There's more than one way to do things | |
PerlMonks |
Re^3: Dormus interruptusby tachyon (Chancellor) |
on Jun 26, 2004 at 12:22 UTC ( [id://369812]=note: print w/replies, xml ) | Need Help?? |
Usual caveats about signals not being safe but if you use INT you can also catch ^C automaticlly to do a neat cleanup & exit. As an aside I also use a strategy like:
to ensure clean database disconnects, having exhaused the available supply of connections in the past. cheers tachyon
In Section
Seekers of Perl Wisdom
|
|