Swoole\Process::kill

(PECL swoole >= 1.9.0)

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

說明

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

返回值

成功時返回 true, 或者在失敗時返回 false。