in reply to SIGHUP with Proc::Daemon
I've tried changing the code inside to something simpler
Have you tried setting just a (global) flag variable in the handler, and then doing the reloading elsewhere in the daemon code? (presumably, you have some loop where you could check the flag...)
Doing a lot of stuff directly in the signal handler sometimes isn't the best idea.
To find out more about why it dies, you might want to attach strace (or the equivalent tool on your platform) to the daemon process before you send it the signal (strace -p <PID>).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: SIGHUP with Proc::Daemon
by jaandy (Acolyte) on Mar 09, 2012 at 19:06 UTC | |
by jaandy (Acolyte) on Mar 09, 2012 at 19:18 UTC | |
by Eliya (Vicar) on Mar 09, 2012 at 19:56 UTC | |
by Eliya (Vicar) on Mar 09, 2012 at 19:13 UTC |