Amp\Process\Internal\Posix\Runner classRunner implementsAmp\Process\Internal\ProcessRunner

Summary

Properties

Methods

Methods

onProcessEndExtraDataPipeReadable —public functiononProcessEndExtraDataPipeReadable($watcher,$stream,Amp\Process\Internal\Posix\Handle$handle)
No documentation.
Type Parameter Description Default Value
mixed $watcher No documentation. none
mixed $stream No documentation. none
Amp\Process\Internal\Posix\Handle $handle No documentation. none
onProcessStartExtraDataPipeReadable —public functiononProcessStartExtraDataPipeReadable($watcher,$stream,$data)
No documentation.
Type Parameter Description Default Value
mixed $watcher No documentation. none
mixed $stream No documentation. none
mixed $data No documentation. none
start —public functionstart(string$command,string$cwd =null,array$env =[],array$options =[]):Amp\Process\Internal\ProcessHandle

Start a process using the supplied parameters.

Type Parameter Description Default Value
string $command The command to execute. none
string $cwd The working directory for the child process. null
array $env Environment variables to pass to the child process. []
array $options `proc_open()` options. []
join —public functionjoin(Amp\Process\Internal\ProcessHandle$handle):Amp\Promise

Wait for the child process to end.

Type Parameter Description Default Value
Amp\Process\Internal\ProcessHandle $handle The process descriptor. none
kill —public functionkill(Amp\Process\Internal\ProcessHandle$handle)

Forcibly end the child process.

Type Parameter Description Default Value
Amp\Process\Internal\ProcessHandle $handle The process descriptor. none
signal —public functionsignal(Amp\Process\Internal\ProcessHandle$handle,int$signo)

Send a signal signal to the child process.

Type Parameter Description Default Value
Amp\Process\Internal\ProcessHandle $handle The process descriptor. none
int $signo Signal number to send to process. none
destroy —public functiondestroy(Amp\Process\Internal\ProcessHandle$handle)

Release all resources held by the process handle.

Type Parameter Description Default Value
Amp\Process\Internal\ProcessHandle $handle The process descriptor. none