This is automatic generated document for things in Swow\Process\ProcessInterface class

Interface ProcessInterface

Methods

Method getPid

public function getPid ( ) : int

Get the process id.

Method hasExited

public function hasExited ( ) : bool

Check whether the process has exited.

Method kill

public function kill ( int $signal ) : void

Send a signal to the process.

Windows supports SIGINT, SIGBREAK, and SIGKILL. SIGTERM is not supported on Windows.

Throws ProcessException when the signal cannot be sent

Method wait

public function wait ( int $timeout ) : ProcessExitStatus

Wait for the process to exit.

Param int $timeout timeout in milliseconds, -1 means infinite

Throws ProcessException when waiting fails or times out


Copyright 2022 the Swow contributors

This site uses Just the Docs, a documentation theme for Jekyll.