Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

posix_kill

Description

The posix_kill of POSIX for PHP sends a signal to a process.

Syntax

posix_kill(
    int $process_id,
    int $signal
): bool

Parameters

process_id

The process identifier.

signal

One of the PCNTL signals constants.

Return

Returns true on success or false on failure.

Examples

1 · process_id signal

<?

$process_id = posix_getppid();
$signal = SIGKILL;

$return = posix_kill($process_id, $signal);

var_export($return);

?>
true
HomeMenu