Help for this page
elsif ($pid > 0) { # write $pid to .pid file cleanup(); exit(0); ## problem happens HERE }
## now in sub-process