Home > PHP > Function > POSIX > posix_kill()

posix_kill()

posix_kill - Send a signal to a process

Syntax

bool posix_kill (int $pid, int $sig)

Arguments

  • pid - The process identifier.
  • sig - One of the PCNTL signals constants.

Description

Send the signal sig to the process with the process identifier pid.

Version

PHP 4, 5

Return value

Returns TRUE on success or FALSE on failure.