phasync\Process\WindowsProcessRunner final class

Documentation

Documentation missing - No docblock found for this class.

Inheritance

Implements: phasync\Process\ProcessInterface

Constants (4)

NameValue
SECURITY_TOKEN_SIZE 16
STDIN 0
STDOUT 1
STDERR 2

Properties (7)

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()

private int $wrapperPid
private array $securityTokens
private phasync\Server\TcpServer $socketConnector

Methods (18)

Launch a new process.

Documentation missing

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

Documentation missing

Source

src/Process/WindowsProcessRunner.php:8-355