in reply to Signals in Strawberry Perl: Name or number?
(The quotes around 'ALRM' required for strict).#!/usr/bin/perl use strict; use warnings; $SIG{ALRM} = sub { print "Alarming!\n"; }; kill 'ALRM', $$; print "Not alarming\n";
On Windows and ActiveState perl, tracing shows that it does exit on the kill. I tried the same with an INT signal and that did not work either, however the symptoms were different. It did not execute the signal handler but it did not crash either.Alarming! Not alarming
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Signals in Strawberry Perl: Name or number?
by Marshall (Canon) on Sep 13, 2009 at 18:07 UTC |