O
omi
Please see following snip of the code:
$SIG{CHLD} = 'IGNORE';
my $ret1 = `ls jjsjds`;
my $ret = $?;
If we see the value of return code, that is not correctly set.
and this problem is coming because of the "$SIG{CHLD} = 'IGNORE';"
flag is set.
we if remove that everything is working fine, but that is requirement
of the code, since we are using this code with perl socket server
code, which should not have to create "defunct" processes.
Please suggest solution on this, where both setting a flag and getting
output with system can hold in the code.
Thanks,
OMkar
$SIG{CHLD} = 'IGNORE';
my $ret1 = `ls jjsjds`;
my $ret = $?;
If we see the value of return code, that is not correctly set.
and this problem is coming because of the "$SIG{CHLD} = 'IGNORE';"
flag is set.
we if remove that everything is working fine, but that is requirement
of the code, since we are using this code with perl socket server
code, which should not have to create "defunct" processes.
Please suggest solution on this, where both setting a flag and getting
output with system can hold in the code.
Thanks,
OMkar