in reply to Re: apache2 and system
in thread apache2 and system
It seems to work here.system('setsid sleep 1000 &');
Also, the OP may want to think about what to do with open filehandles. It's possible the effects of having a second copy of STDOUT open by the child process will cause strange behavior (like never seeing EOF on a pipe/socket to that filehandle). Redirecting to /dev/null would solve that: system('setsid sleep 1000 </dev/null >/dev/null 2>/dev/null &');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: apache2 and system
by etcshadow (Priest) on Sep 28, 2004 at 03:09 UTC |