|
|
| Welcome to the Monastery | |
| PerlMonks |
Re: Controlling a Perl Daemon with Signalsby sk (Curate) |
| on Aug 05, 2005 at 17:46 UTC ( [id://481376]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
You are saying the script is not terminating right after the interrupt is issued? I took your code and added a sub that i can test and also changed your TERM to INT so it is easy for me to test
Output Here when I run the script and hit ^C while it is running I get this output
Seems to suggest that it picked the interrupt and terminated the loop at that point. Is this the behavior you want and you don't see that? Are you sure you are sending TERM signals? -SK
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||