Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- PHP exec isn't doing a waitpid. Eh?
March 18, 2005, 5:16 pm
rate this thread
On Unix (MacOSX 10.3), I have an exec
$rs = array(); $rc = 0;
exec("program yadda yadda yadda",$rs,$rc);
and the program does a fork with parent exitting immediately
(to daemonise the program). With ps I can see the parent as a
zombie, by the PHP code never reaps the exit code or returns
from the exec. This was working fine yesterday and today suddenly
stopped working. Does anybody have a suggestion what can be
wrong with this fershinlungger code?
SM Ryan http://www.rawbw.com/~wyrmwif /
There are subtler ways of badgering a witness.