On Fri, 17 Mar 2006, Octavian Rasnita wrote:
>
> I have tried to run the following test script under perl 5.8.8
> (Windows 2000) but I cannot stop it using control+break or control+C.
> I have no problem when using older versions of perl (5.8.7 or 5.8.6).
>
> What can I do? Just switch back to 5.8.7?

Yes, it is a bug.  It will be fixed in 5.8.8.817.

As a workaround you can add a call to alarm() to your code:

    alarm(0);

This will make sure the signal processing code is properly initialized.

Cheers,
-Jan

> Thank you.
>
> use strict;
>
> my $exit; $SIG{INT} = $SIG{BREAK} = $SIG{HUP} = sub {$exit++};
>
> while(!$exit) { sleep 1; }
>
> Teddy



_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to