On Wed, 2002-05-01 at 03:05, Andrew A. Chen wrote:
> I am unsure how kosher this solution is, but it's "functional" as far as I 
> know.  I jacked the daemonize() routine out of perlfaq and called it just 
> before $poe_kernel->run();  See below.
> 
> -a
> 
> daemonize();
> $poe_kernel->run();
> exit 0;
....

Yes, I found references to the function you included.

http://dbforums.com/archive/95/2001/12/1/224495

Net::Server::Daemonize seems to take a more rigorous approach.

What I am tripping over is whether it makes sense to daemonize within
POE's event loop instead, and whether that would cause any adverse
effects.

For example, let's say I like to use POE::Component::Logger and I would
like to keep the logging API consistent.  In this case, it seems to
require me to enter POE's event loop as soon as possible, and having a
session do the initialization work and possibly log errors.

Pete


Reply via email to