I have a Perl script which invokes the sqlldr and loads data to a table from a flat file.
Now, my problem is, even though the sqlldr loads the table fine it is returning exit code as -1(got by using $?
), when i tried using $!
it says No child processes
.
I'm executing this script by using sudo
command
sudo -u <uname> bash
<script_name>.pl
This Perl script is working fine if i execute it directly from my user id. I really don't understand why this error shows up only when i execute through sudo user.
Please help me to understand this error.
EDIT:It's working fine if i give $SIG{CHLD} = 'DEFAULT';
in my code. But, if i remove this step, the problem shows up again. I got this code from WWW when i was browsing about this error. Any idea what it does?