Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: why does ignoring sigCHLD corrupt return value from system()?

by sauoq (Abbot)
on Nov 05, 2003 at 01:00 UTC ( [id://304592]=note: print w/replies, xml ) Need Help??


in reply to why does ignoring sigCHLD corrupt return value from system()?

I can reproduce this with 5.6.1 and 5.005_02 on Solaris 7. And with 5.8.0, 5.6.1, and 5.005_03 on Solaris 8.

But I can't with 5.8.0 on Linux 2.4.18 (libc-2.2.93).

-sauoq
"My two cents aren't worth a dime.";
  • Comment on Re: why does ignoring sigCHLD corrupt return value from system()?

Replies are listed 'Best First'.
Re: Re: why does ignoring sigCHLD corrupt return value from system()?
by ant9000 (Monk) on Nov 05, 2003 at 09:35 UTC
    Tested on Linux:
    • RH7.2, i386, perl 5.6.1, kernel 2.4.20, glibc 2.2.4: I get the expected result, ie -1 if system() fails and 5 if prog2.pl is run, independently of how sigCHILD is handled.
    • RH9a, i386, perl 5.8.0, kernel 2.4.20, glibc 2.3.2: when prog2.pl get executed, ignoring sigCHILD returns -1 instead of 5
    It definitely looks like a bug.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://304592]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2024-04-23 09:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found