Icicle\Concurrent\Process\Process::kill PHP Method

kill() public method

public kill ( )
    public function kill()
    {
        if (is_resource($this->process)) {
            // Forcefully kill the process using SIGKILL.
            proc_terminate($this->process, 9);
            // "Detach" from the process and let it die asynchronously.
            $this->process = null;
        }
    }

Usage Example

Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function kill()
 {
     $this->process->kill();
     $this->channel = null;
 }
All Usage Examples Of Icicle\Concurrent\Process\Process::kill