proc_get_status

(PHP 5 CVS only)

proc_get_status --  Get information about a process opened by proc_open()

Description

int proc_get_status ( resource process)

proc_get_status() fetches data about a process opened using proc_open(). The collected information is returned in an array containing the following elements:

elementtypedescription
commandstring 
pidintprocess id
runningbool TRUE if the process is still running, FALSE if it has terminated
signaledboolTODO
stopperboolTODO
exitcodeint the exit code returned by the process (which is only meaningfull if running is FALSE
termsigintTODO
stopsigintTODO