good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: Using SIGHUP to restart a daemonby vsespb (Chaplain) |
on Oct 17, 2013 at 17:17 UTC ( [id://1058652]=note: print w/replies, xml ) | Need Help?? |
Looks like it's known problem in perl. Also, similar issue Can't catch signals after an exec? Code can be simplified to (if you press Ctrl-C, it restarts only once) Workaround for example in perldoc:
(i.e. need to call exec() outside of signal handler) And another workaround is posted above by McA Re: Using SIGHUP to restart a daemon
In Section
Seekers of Perl Wisdom
|
|