Subject: | MooseX::Daemonize mutes STDERR while in foreground |
Hi,
MooseX::Daemonize closes all open file handles when it starts up regardless of whether it is
in foreground or daemonized. Unfortunately this closes STDERR also. This is problematic
because if a daemon is running in the foreground and is printing to STDERR then the output
is lost. Also, the documentation on MooseX::Daemonize doesn't mention this nor does it
mention the 'dont_close_all_files' option. Instead this is mentioned in
MooseX::Daemonize::Core, but MooseX::Daemonize doesn't state that it would be useful to
read MX::D::Core.
I'm proposing 2 things:
* Add an option that allows you to leave STDERR open.
* Add something in the documentation of MX::D that says to go look at MX::D::Core for
options regarding forking and file handles.
I will write patches for either/both of these if they sound good to you.
thanks,
Matt Follett