PCNTL_WIFSTOPPED(3) 1 PCNTL_WIFSTOPPED(3)pcntl_wifstopped - Checks whether the child process is currently stoppedSYNOPSIS
bool pcntl_wifstopped (int $status)
DESCRIPTION
Checks whether the child process which caused the return is currently stopped; this is only possible if the call to pcntl_waitpid(3) was
done using the option WUNTRACED.
PARAMETERS
o $status
-The $status parameter is the status parameter supplied to a successful call to pcntl_waitpid(3).
RETURN VALUES
Returns TRUE if the child process which caused the return is currently stopped, FALSE otherwise.
SEE ALSO pcntl_waitpid(3).
PHP Documentation Group PCNTL_WIFSTOPPED(3)
Check Out this Related Man Page
PROC_GET_STATUS(3) 1 PROC_GET_STATUS(3)proc_get_status - Get information about a process opened byproc_open(3)SYNOPSIS
array proc_get_status (resource $process)
DESCRIPTION proc_get_status(3) fetches data about a process opened using proc_open(3).
PARAMETERS
o $process
- The proc_open(3) resource that will be evaluated.
RETURN VALUES
An array of collected information on success, and FALSE on failure. The returned array contains the following elements:
+---------+--------------------------------------+---+
|element | | |
| | | |
| | type | |
| | | |
| | description | |
| | | |
+---------+--------------------------------------+---+
|command | | |
| | | |
| | | |
| | string | |
| | | |
| | The command string that was passed | |
| | to proc_open(3). | |
| | | |
| pid | | |
| | | |
| | | |
| | int | |
| | | |
| | process id | |
| | | |
|running | | |
| | | |
| | | |
| | bool | |
| | | |
| | | |
| | TRUE if the process is still run- | |
| | ning, FALSE if it has terminated. | |
| | | |
|signaled | | |
| | | |
| | | |
| | bool | |
| | | |
| | | |
| | TRUE if the child process has been | |
| | terminated by an uncaught signal. | |
| | Always set to FALSE on Windows. | |
| | | |
|stopped | | |
| | | |
| | | |
| | bool | |
| | | |
| | | |
| | TRUE if the child process has been | |
| | stopped by a signal. Always set to | |
| | FALSE on Windows. | |
| | | |
|exitcode | | |
| | | |
| | | |
| | int | |
| | | |
| | The exit code returned by the | |
| | process (which is only meaningful if | |
| | running is FALSE). Only first call | |
| | of this function return real value, | |
| | next calls return -1. | |
| | | |
|termsig | | |
| | | |
| | | |
| | int | |
| | | |
| | The number of the signal that | |
| | caused the child process to termi- | |
| | nate its execution (only meaningful | |
| | if signaled is TRUE). | |
| | | |
|stopsig | | |
| | | |
| | | |
| | int | |
| | | |
| | The number of the signal that | |
| | caused the child process to stop its | |
| | execution (only meaningful if | |
| | stopped is TRUE). | |
| | | |
+---------+--------------------------------------+---+
SEE ALSO proc_open(3).
PHP Documentation Group PROC_GET_STATUS(3)