in reply to Re^2: Can't daemonize because STDIN/STDOUT not detatched?
in thread Can't daemonize because STDIN/STDOUT not detatched?

I don't know what you're trying to do here. Daemonizing implies you don't have, want and use STDOUT STDIN and STDERR.

So, either use STDOUT or don't daemonize. If you only want to run the process in the background while still polluting your STDOUT for some strange reason, just fork(), or (probably better) start the process in the background from the shell.

  • Comment on Re^3: Can't daemonize because STDIN/STDOUT not detatched?

Replies are listed 'Best First'.
Re^4: Can't daemonize because STDIN/STDOUT not detatched?
by macli (Beadle) on May 02, 2007 at 21:42 UTC
    I want to debug what is in the socket, and I can see from the terminal. Commented out the #    open STDOUT, '>/dev/null' or die "Can't write to /dev/null: $!"; seems get the result I want, but i am not sure if it is the right way to do :)