Discussion:
[Sisuite-devel] si_netbootmond fails to start on Fedora Core 7 Test 2 i386
Bernard Li
2007-03-13 07:48:53 UTC
Permalink
Hi guys:

Was testing OSCAR trunk with Fedora Core 7 Test 2 i386, and
si_netbootmond failed to start up (trunk comes with SystemImager
3.8.0).

I had to replace the line:

open STDOUT, '>>/dev/null' or die "Can't write to /dev/null: $!";

with

open '>-', '>>/dev/null' or die "Can't write to /dev/null: $!";

otherwise it would fail sooner...

The strace is here:

http://earth.therealms.org/oss/systemimager/si_netbootmond.strace

The version of Perl on fc7t2 is:

This is perl, v5.8.8 built for i386-linux-thread-multi

It's quite possible it's a bug in test 2, but just thought we should
crush this bug before FC7 is released.

Thanks,

Bernard
Andrea Righi
2007-03-19 09:49:16 UTC
Permalink
Post by Bernard Li
Was testing OSCAR trunk with Fedora Core 7 Test 2 i386, and
si_netbootmond failed to start up (trunk comes with SystemImager
3.8.0).
open STDOUT, '>>/dev/null' or die "Can't write to /dev/null: $!";
with
open '>-', '>>/dev/null' or die "Can't write to /dev/null: $!";
otherwise it would fail sooner...
http://earth.therealms.org/oss/systemimager/si_netbootmond.strace
This is perl, v5.8.8 built for i386-linux-thread-multi
It's quite possible it's a bug in test 2, but just thought we should
crush this bug before FC7 is released.
Thanks,
Bernard
Bernard,

it doesn't seem a good fix... what's the '>-'? for example with a simple
script like the following:

open '>-', '>>/dev/null' or die "Can't write to /dev/null: $!";
print "bye\n";

the string "bye" is printed in stdout...

Have you tried to use a single ">":

open STDOUT, '>/dev/null' or die "Can't write to /dev/null: $!";

Cheers,
-Andrea

Loading...