kill
kill
kill SIGNAL, LIST
kill SIGNAL
Sends a signal to a list of processes. Returns the number of arguments that were successfully used to signal (which is not necessarily the same as the number of processes actually killed, e.g. where a process group is killed).
$cnt = kill 'HUP', $child1, $child2; kill 'KILL', @goners;
SIGNAL may be either a signal name (a string) or a signal number. A signal name may start with a SIG
prefix, thus FOO
and SIGFOO
refer to the same signal. The string form of SIGNAL is recommended for portability because the same signal may have different numbers in different operating systems.
A list of signal names supported by the current platform can be found in