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

I have not been able to duplicate this "error".

I have tested this on Gentoo Linux (kernel 2.4.20, glibc 2.3.2) with Perl 5.8.0 and it returns 5 as intended.

Ed

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

Replies are listed 'Best First'.
Re^2: why does ignoring sigCHLD corrupt return value from system()?
by Anonymous Monk on Feb 21, 2016 at 20:35 UTC
    I ran into this on Gentoo with perl-5.20.2 with ithreads useflag enabled. Recompiling without ithreads (that is the default) fixed the problem.