Perl , $SIG{CHLD} = ‘IGNORE’ , system() and you.
Tuesday, June 24th, 2008At first blush you probably would not expect the following to print “-1″; as you probably expect “system” to execute and return the return code from “echo”. $SIG{CHLD} = 'IGNORE'; print system('echo'); This stumped me too, so I did some research. From the Perl PIC Documentation: On most Unix platforms, the CHLD (sometimes also known ...