Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

ddick (5726)

  (email not shown publicly)

I'm based out of Melbourne, Australia. I attend the excellent meetings whenever i get the chance, which is not often enough.

Journal of ddick (5726)

Tuesday November 20, 2007
11:20 PM

POSIX::close vs close, Expect && Proc::Daemon

[ #34944 ]
Proc::Daemon uses POSIX::close() to close all the existing file descriptors during the daemonising process. However, this seemingly causes a very subtle issue with Expect. If i call
close(STDIN); close(STDOUT); close(STDERR); Proc::Daemon::Init();
then i can use Expect with no problems. However, just calling
causes Expect to lose track of it's child processes/file handles. Very odd.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.