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.