There's more than one way to do things | |
PerlMonks |
Re^2: Why this daemon can only receive the HUP signal no more than one time?by sunshine_august (Scribe) |
on Feb 24, 2009 at 07:26 UTC ( [id://745923]=note: print w/replies, xml ) | Need Help?? |
Yes, indeed! The daemon will blocked the SIGHUP signal when it execute the SIGHUP handler. And after it relaunch itself in the handler, the SIGHUP remains being blocked, so the SIGHUP sent later is pending. Put the following code at the head of the scrpit:
And replace the old hupMain with the following new one:
I can observe the SIGHUP signal is being blocking and pending.
In Section
Seekers of Perl Wisdom
|
|