fork && exit;
Because fork returns the child PID (>0) to the parent and 0 to the child it can be used as a boolean.
As similar code should work for you. Did you tried to set $SIG{CHLD} = 'IGNORE';?
AFIK exec replaces the perl interpreter process with the called command - that's not what you want.
In reply to Re: fork/exe, system open etc.
by mscharrer
in thread fork/exe, system open etc.
by martino
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |