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