in reply to Re: Starting a process in the background that lives after perl dies.
in thread Starting a process in the background that lives after perl dies.
Stevens covered this pretty well, I think it was "Advanced Programming in the UNIX Environment" or some such.my $pid = fork(); if($pid != 0){ exit 0; } chdir "/"; close STDOUT; close STDERR; close STDIN; POSIX::setsid(); # this takes care of controlling terminals
|
|---|