Programming Perl

Programming PerlSearch this book
Previous: 3.2.79 keysChapter 3
Next: 3.2.81 last

3.2.80 kill

kill LIST

This function sends a signal to a list of processes. The first element of the list must be the signal to send. You may use a signal name in quotes (without a SIG on the front). The function returns the number of processes successfully signaled. If the signal is negative, the function kills process groups instead of processes. (On System V, a negative process number will also kill process groups, but that's not portable.) Examples:

$cnt = kill 1, $child1, $child2;
kill 9, @goners;
kill 'STOP', getppid;  # Can *so* suspend my login shell...

Previous: 3.2.79 keysProgramming PerlNext: 3.2.81 last
3.2.79 keysBook Index3.2.81 last