Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Dormus interruptus

by pbeckingham (Parson)
on Jun 25, 2004 at 13:15 UTC ( #369615=note: print w/replies, xml ) Need Help??


in reply to Re: Dormus interruptus
in thread Dormus interruptus

Thank you. I did not think of this, and it does exactly what I wanted, which is to interrupt the sleep calls.

Replies are listed 'Best First'.
Re^3: Dormus interruptus
by tachyon (Chancellor) on Jun 26, 2004 at 12:22 UTC

    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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://369615]
help
Chatterbox?
[LanX]: marto: btw is Glasgow a safe place for yapc? heard it has one of the highest murder rates in western Europe
[LanX]: ... oh Amsterdam is worse. ..
[marto]: only when I'm bored
[LanX]: we should certainly avoid Amsterdam! ! !
[marto]: kidding. The area in question isn't great. I'd no idea these facilities existed in that part of town.
LanX vile place ...
[LanX]: well, me was kidding!
[marto]: One of the main train stations is right across the road, so handy from that perspective, and there are some nice hotels in the area, but it's not great after dark, or sometimes during the day to be honest
[LanX]: not easy to find good and affordable venues ...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (11)
As of 2017-12-14 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (396 votes). Check out past polls.

    Notices?