When I fork the process, I believed that the process in question would only run what was inside the bracket, then exit.
if doesn't do anything special if the condition happens to be a call to fork. It won't exit if you don't tell it to exit. Indeed, it sounds like you want exec instead of system.
In reply to Re^3: END{} Subroutine not being called for Child process
by ikegami
in thread END{} Subroutine not being called for Child process
by SituationSoap
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |