in reply to Proc::Daemon and Log::Log4perl
The Proc::Daemon::Init function does the following:
Note point 6. It closes all open file descriptors. Maybe exchanging two lines in your code does the trick:
Proc::Daemon::Init(); Log::Log4perl->init_and_watch( '/tmp/test_log_daemon.conf', 10 );
Don't know it it works (just an idea), maybe Log::Log4perl->init_and_watch() reopens STDERR or such.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Proc::Daemon and Log::Log4perl
by jasonk (Parson) on Jun 28, 2006 at 13:08 UTC | |
|
Re^2: Proc::Daemon and Log::Log4perl
by Excalibor (Pilgrim) on Jun 28, 2006 at 13:19 UTC |