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>).
In reply to Re: SIGHUP with Proc::Daemon
by Eliya
in thread SIGHUP with Proc::Daemon
by jaandy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |