kili has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,

Thank you in advance for your help.

I'm trying to install Bundle::DBI using CPAN. All was going smooth until I came to the Net::Daemon forkm.t test.

So I jumped to the command line and did a "make test TEST_VERBOSE=1"
I'm trying to install it on my RedHat 9 boxen with perl 5.8.0 compiled in /usr/local/perl-5.8.0 (their RPM has proven problematic to upgrade with CPAN) Yes I did try installing it to the perl RPM version too. Same results.
/usr/local/perl-5.8.0/lib is in /etc/ld.so.conf and I've run ldconfig.

Here is the pertinant output.

t/forkm.........Starting server:
/usr/local/perl-5.8.0/bin/perl -Iblib/lib -Iblib/arch t/server --mode=fork logfile=stderr debug
1..10
FAILED before any test output arrived
  • Comment on Net::Daemon forkm.t "FAILED before any test output arrived"

Replies are listed 'Best First'.
Re: Net::Daemon forkm.t "FAILED before any test output arrived"
by Anonymous Monk on Jul 20, 2004 at 19:21 UTC
    I too am having the same problem with Redhat AS 3. Anyone solved this?
      This problem seems to be a result of the SIGCHLD returning too quickly. The end result is that the array of %childs doesn't get emptied as 2 or more SIGCHLD's are received too quickly for more then one PID to be removed from the list. A simple fix is to slow down the children in the test such that the parent can flush them. Just add a "sleep 1;" at the bottom of the for loop which spawns the children. That gives enough separation on death to allow the parent to reap them.