PROC_CLOSE(3) 1 PROC_CLOSE(3)
proc_close - Close a process opened byproc_open(3)and return the exit code of that process
SYNOPSIS
int proc_close (resource $process)
DESCRIPTION
proc_close(3) is similar to pclose(3) except that it only works on processes opened by proc_open(3). proc_close(3) waits for the process to
terminate, and returns its exit code. If you have open pipes to that process, you should fclose(3) them prior to calling this function in
order to avoid a deadlock - the child process may not be able to exit while the pipes are open.
PARAMETERS
o $process
- The proc_open(3) resource that will be closed.
RETURN VALUES
Returns the termination status of the process that was run. In case of an error then -1 is returned.
PHP Documentation Group PROC_CLOSE(3)