phasync\Process\PosixProcessRunner
final
class
Documentation
Inheritance
Implements:
phasync\Process\ProcessInterface
Constants (3)
| Name | Value |
|---|---|
STDIN |
0 |
STDOUT |
1 |
STDERR |
2 |
Properties (4)
array $command
The command and arguments.
mixed $process
The proc_open resource.
array $pipes
The stream resources to communicate with the process.
array $status
The last retrieved status from proc_get_status().
Methods (16)
Launch a new process.
Documentation missing
Documentation missing
Returns true if the process is still running.
Returns true if the process is stopped (generally via
Return the exitcode of the process, or false if the process
Send a POSIX signal to the process.
SIGTERM requests a process to terminate. It is a polite way to tell
This signal forces a process to terminate immediately. Operating
This signal is typically sent when the user types the interrupt
This signal pauses a process's execution. It can be used to
SIGCONT is used to resume a process previously stopped by SIGSTOP
Originally sent when a terminal was closed, today SIGHUP is often
Update the process status, unless the process is no longer running.
Perform a Fiber-blocking read from the given process pipe.
Perform a Fiber-blocking write to the given process pipe.