No Child Processes - Error while running perl script

Solution Unverified - Updated -

Issue

  • The following error is seen when attempting to run a perl script on a system:
Error -1: echo '
error No child processes: tr "~^" "  " 
  • Below is the code snippet of the perl script being run.
            my($os_cmd) = qq(tr "~^" "  " < $edi_filename > ${edi_filename}.fix);
       system($os_cmd) && &my_die($!,$?,$os_cmd,"");
  • However when we modify the above code snippet with a line $SIG{CHLD} = 'DEFAULT'; We do not get this error.
            my($os_cmd) = qq(tr "~^" "  " < $edi_filename > ${edi_filename}.fix);
          $SIG{CHLD} = 'DEFAULT';
       system($os_cmd) && &my_die($!,$?,$os_cmd,"");

Environment

  • Red Hat Enterprise Linux
  • Perl

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In