$SIG{CHLD} = 'IGNORE';
However, I am not sure if the calls to system you are making will interfere with this or not. I think if you switched to exec it is more likely to work.
In reply to Re: rsh <defunct> processes appear when using fork and system calls
by Argel
in thread rsh <defunct> processes appear when using fork and system calls
by whatwhat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |