proc_close
proc_close
Close a process opened by proc_open and return the exit code of that process
int **proc_close** resource $process
is similar to
except that it only works on processes opened by
.
waits for the process to terminate, and
returns its exit code. Open pipes to that process are closed
when this function is called, in
order to avoid a deadlock - the child process may not be able to exit
while the pipes are open.
proc_close``pclose``proc_open``proc_close
process
The that will
be closed.
proc_open``resource
Returns the termination status of the process that was run. In case of
an error then is returned.
-1