I open a lengthy process with popen (). For debugging, I would like to complete the process before it is complete. The call to pclose () simply blocks until the child completes execution.
How can I kill the process? I don't see any easy way to get the pid from the resource that popen () returns so that I can send it a signal.
I suppose I could do something kludgey and try to get the pid out, using some kind of command line hacking ...
linux php popen kill
Frank farmer
source share