Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Dormus interruptus

by tachyon (Chancellor)
on Jun 26, 2004 at 12:22 UTC ( #369812=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Dormus interruptus
in thread Dormus interruptus

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:

$dbh = DBI->connect( .... ); END{ $dbh->disconnect if $dbh }

to ensure clean database disconnects, having exhaused the available supply of connections in the past.

cheers

tachyon


Comment on Re^3: Dormus interruptus
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://369812]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2015-07-05 18:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls