Swoole\Process::kill

(PECL swoole >= 1.9.0)

Swoole\Process::killSend signal to the child process.

說(shuō)明

public static Swoole\Process::kill(int $pid, int $signal_no = ?): bool

Send signal to the child process.

參數(shù)

pid

Process pid

signal_no

Signal to be sent

返回值

成功時(shí)返回 true, 或者在失敗時(shí)返回 false。