write_file is exported by File::Slurp, which the module uses at the top of the file. It looks like the return value from it isn't checked though, so if the problem is that it is failing to write the pidfile for some reason that would explain why your replacement of it with your own subroutine seems to help.
In reply to Re^5: Generic Daemon Use
by dirving
in thread Generic Daemon Use
by smist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |