phasync\Process\PosixProcessRunner final class

Documentation

Documentation missing - No docblock found for this class.

Inheritance

Implements: phasync\Process\ProcessInterface

Constants (3)

NameValue
STDIN 0
STDOUT 1
STDERR 2

Properties (4)

private array $command

The command and arguments.

private mixed $process

The proc_open resource.

private array $pipes

The stream resources to communicate with the process.

private ?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.

Source

src/Process/PosixProcessRunner.php:5-286