in reply to Re^3: Daemon, log4perl & stderr/stdout
in thread Daemon, log4perl & stderr/stdout
However, if the close(STDERR) call is removed, STDERR remains at file descriptor 2.close(STDIN); close(STDERR); open(STDERR, ">/tmp/foo"); print fileno(STDERR), "\n"; # prints 0
A quick test of Proc::Daemon indicates that STDIN, STDOUT and STDERR all have the expected file descriptors.
|
|---|