proc_terminate()
proc_terminate - Kills a process opened by proc_open
Syntax
bool proc_terminate (
resource $process,
int $signal)
Arguments
- process - The proc_open() resource that will be closed.
- signal - This optional parameter is only useful on POSIXoperating systems; you may specify a signal to send to the process using the kill(2)system call. The default is SIGTERM.
Description
Signals a process (created using proc_open()) that it should terminate. proc_terminate() returns immediately and does not wait for the process to terminate.
Version
PHP 5
Return value
Returns the termination status of the process that was run.