anshumangoyal has asked for the wisdom of the Perl Monks concerning the following question:
I am forking a child process (a perl file is called in that child process) and in that child there is a Signal Handling Routine written. I want that when I send a signal to this child (SIG USR1), it should exit giving return code 110.
This is my Code:
But with this it exits from Handler with 110 and not from the child. Is there anything I am doing wrong here?$SIG{USR1} = 'HANDLER'; sub HANDLER { print "Got 'USR1'. Exiting with Return Code '110' !!\n"; exit 110; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Signal Handling in a Child Process
by aitap (Curate) on Aug 08, 2012 at 14:56 UTC | |
Re: Signal Handling in a Child Process
by Illuminatus (Curate) on Aug 08, 2012 at 17:29 UTC |
Back to
Seekers of Perl Wisdom