in reply to Re: system() call failure
in thread system() call failure
My bad, the above was completely inacurate. I started doing some searching around to the cause of the annoying error, and I reduced it down to this:
#!/usr/local/bin/perl $SIG{ 'CHLD' } = sub { my $pid = wait(); print "Got $pid\n"; }; system("/bin/ls > /dev/null") == 0 || print "system exited with $?, error is \"$!\"\n";
If you take out the signal handler, it works. Now I'm completely lost...
By the way, this is the uname -a output:
ANY ideas??
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: system() call failure
by no_slogan (Deacon) on May 15, 2001 at 04:09 UTC | |
by lestrrat (Deacon) on May 15, 2001 at 21:10 UTC | |
by lestrrat (Deacon) on May 16, 2001 at 23:02 UTC |