in reply to Signals and 'IGNORE'
The default behavior of $SIG{INT}, the keyboard interrupt, is determined by the OS. On *nixen it is the system's process termination function, exit(), and you can probably rely on a system doing its own version of that if signals exist at all. The *nix behavior is POSIX standard.
Perl does not set its own handler, so anything that leaves $SIG{INT} undefined will work.
or maybe [for self-documentation - thanks to broquaint for asking]{ local $SIG{INT}; }
will do.{ undef local $SIG{INT}; }
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Horrible "undef local $foo;" (was: Re: Signals and 'IGNORE')
by bart (Canon) on Jan 06, 2003 at 13:30 UTC | |
by shotgunefx (Parson) on Jan 06, 2003 at 13:50 UTC | |
by merlyn (Sage) on Jan 06, 2003 at 14:30 UTC | |
by shotgunefx (Parson) on Jan 06, 2003 at 14:44 UTC | |
by waswas-fng (Curate) on Jan 06, 2003 at 16:07 UTC | |
by bart (Canon) on Jan 07, 2003 at 00:53 UTC | |
by shotgunefx (Parson) on Jan 07, 2003 at 09:28 UTC |