Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: sleep doesn't respond to sigint(2)?

by snax (Hermit)
on Oct 17, 2003 at 14:34 UTC ( [id://300018]=note: print w/replies, xml ) Need Help??


in reply to sleep doesn't respond to sigint(2)?

Use a ref to that sub, not a string:
$SIG{INT} = \&cleanup;
Update:
Oh, Win32. Check this out, at the bottom:
Perl Quirks on Win32

Looks like signal handling and Win32 is a bad mix.

Update, again:
Well, I am an idiot. My first suggestion (use a ref) is somewhat pointless, as the string construction should work fine, subject to the Win32 issues noted above (although the perlipc page suggests the best way is to use a ref).

Apologies...

Replies are listed 'Best First'.
Re: Re: sleep doesn't respond to sigint(2)?
by RolandGunslinger (Curate) on Oct 17, 2003 at 14:47 UTC
    that explains it...thanks

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-14 14:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found