There's more than one way to do things | |
PerlMonks |
Signals and 'IGNORE'by hotshot (Prior) |
on Jan 06, 2003 at 10:28 UTC ( [id://224589]=perlquestion: print w/replies, xml ) | Need Help?? |
hotshot has asked for the wisdom of the Perl Monks concerning the following question:
Hello guys! Suppose I want my entire program to ignore SIGINT, I would have to add at the top of it the row: So far so good. Is there a way to let SIGINT gain it's default behaviour? In several functions of mine I would like the function to catch this signal regulary. how do I do it (is it possible to do: $SIG{INT} = 'DEFAULT'; or something?). It's the oposite case of when all the program use the default behaviour of SIGINT and in one function I need to ignore it and there I can use:
Hotshot
Back to
Seekers of Perl Wisdom
|
|