This is automatic generated document for things in Swow\Process namespace

CTRL_BREAK_EVENT = 1

Windows only: console control event value

CTRL_C_EVENT = 0

Windows only: console control event value

SIGBREAK = 21

Windows only: CRT SIGBREAK, mapped to CTRL_BREAK_EVENT

SIGINT = 2

POSIX: SIGINT Windows: CRT SIGINT, mapped to CTRL_C_EVENT by the process API

SIGKILL = 9

POSIX: SIGKILL Windows: mapped to TerminateProcess

SIGTERM = 15

POSIX only

Function kill

function kill ( int $pid , int $signal ) : void

Send a signal to an arbitrary process.

POSIX uses the signal number. Windows supports 0 (existence check), SIGKILL (TerminateProcess), SIGINT (CTRL_C_EVENT), and SIGBREAK (CTRL_BREAK_EVENT). SIGTERM is not supported on Windows.

Param int $pid process id Param int $signal platform signal value

Throws ProcessException when the signal cannot be sent

Classes

Class ChildProcess

Class ForkProcessManager

Class ProcessException

Class ProcessExitStatus

Interface ProcessInterface

Class ProcessManager

Class ProcessManagerException

Interface ProcessManagerInterface

Trait ProcessManagerTrait

Class WorkerContext


Table of contents


Copyright 2022 the Swow contributors

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