Sisyphus wrote:
----- Original Message -----
From: "SkyBlueshoes" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, May 07, 2006 4:38 PM
Subject: Catch ctrl-c
I've tried to catch control-c using:
$SIG{QUIT} = \&got_sig_quit;
Try catching it with:
$SIG{INT} = \&got_sig_int;
Yet, my sub never gets executed, it's like the signal is being ignored.
I'm using Activestate's Perl version v5.8.8 built for
MSWin32-x86-multi-thread Binary build 816 [255195] provided by ActiveState
ActiveState recommends that you *not* use build 816 as it was a bad build -
best to update to build 817.
Cheers,
Rob
Okay, I upgrade to the 817 build and I managed to get $sig{QUIT} to
work, but I am now getting this error, even though I changed nothing else:
Undefined subroutine &threads::new called at C:\Documents and
Settings\SkyBlueshoes\Desktop\SBIdent\sbidentd.pl line 84.
Here is the area around my code:
83 close $client;
84 my $t = Thread->new(\&Timer);
85 $t->detach;
I am not getting an error with /use Thread;/ but when I try to create
the thread it gives me an error, whereas it wasn't before...
SkyBlueshoes
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs