Skip Menu |
 

This queue is for tickets about the MooseX-Daemonize CPAN distribution.

Report information
The Basics
Id: 46043
Status: resolved
Priority: 0/
Queue: MooseX-Daemonize

People
Owner: stevan.little [...] gmail.com
Requestors: matt.follett [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: MooseX::Daemonize mutes STDERR while in foreground
Download (untitled) / with headers
text/plain 859b
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
Matt, A patch for both would be awesome! You can find the git repository here => https://jules.scsys.co.uk/gitweb/gitweb.cgi Thanks, - Stevan On Wed May 13 12:58:19 2009, mfollett wrote: Show quoted text
> 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
Subject: Re: [rt.cpan.org #46043] MooseX::Daemonize mutes STDERR while in foreground
Date: Wed, 13 May 2009 14:23:49 -0400
To: bug-MooseX-Daemonize [...] rt.cpan.org
From: Chris Prather <perigrin [...] gmail.com>
Download (untitled) / with headers
text/plain 449b
On Wed, May 13, 2009 at 1:05 PM, Stevan Little via RT <bug-MooseX-Daemonize@rt.cpan.org> wrote: Show quoted text
>       Queue: MooseX-Daemonize >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=46043 > > > Matt, > > A patch for both would be awesome! > > You can find the git repository here => https://jules.scsys.co.uk/gitweb/gitweb.cgi
That's a bad place to look to clone from. git clone git://jules.scsys.co.uk/gitmo/MooseX-Daemonize.git -Chris
Download (untitled) / with headers
text/plain 120b
Sorry to waste your time, it was a mistake I was making. I should have done more to verify it before I posted the bug.
Subject: Re: [rt.cpan.org #46043] MooseX::Daemonize mutes STDERR while in foreground
Date: Fri, 15 May 2009 02:00:04 -0500
To: bug-MooseX-Daemonize [...] rt.cpan.org
From: Matt Follett <matt.follett [...] gmail.com>
Download (untitled) / with headers
text/plain 941b
So, I closed the bug because I realized I was doing something wrong. I apologize for the time I wasted. Sunday I'm going to try and add more to the documentation on that module though like I mentioned. Thanks for MooseX::Daemonize btw, it has saved me quite a bit of time. thanks, Matt Follett On Wed, May 13, 2009 at 1:24 PM, chris@prather.org via RT < bug-MooseX-Daemonize@rt.cpan.org> wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=46043 > > > On Wed, May 13, 2009 at 1:05 PM, Stevan Little via RT > <bug-MooseX-Daemonize@rt.cpan.org> wrote:
> > Queue: MooseX-Daemonize > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=46043 > > > > > Matt, > > > > A patch for both would be awesome! > > > > You can find the git repository here =>
> https://jules.scsys.co.uk/gitweb/gitweb.cgi > > That's a bad place to look to clone from. > > git clone git://jules.scsys.co.uk/gitmo/MooseX-Daemonize.git > > -Chris > >


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.