1

forking a new process in perl on linux

view story
linux-howto

http://stackoverflow.com – I want to fork a background process from a cgi call. So that the httpd call returns immediately and rest of the stuff keeps running This used to work all this while until we migrated to a new machine ............ ## Close the http connection so that the remote client returns close STDOUT; close STDERR; POSIX::setsid(); fork() && exit; do_job(); ......... Now on the new machine , same code never executes the do_job() Perl , httpd versions are the same ( there is a minor kernel upgrade ) Now I changed the code to .......... open(STDOUT,">/dev/null"); open(STDERR,">/dev/null (HowTos)