killall(8) — Maintenance
OSF — Environment_Note_Added
NAME
killall − Terminates all processes started by the user, except the calling process
SYNOPSIS
killall [- | -signal_name | -signal_number]
killall -l
FLAGS
-The hyphen character (without an argument) sends a SIGTERM signal initially and then sends a SIGKILL signal to all processes that survive for 30 seconds after receipt of the first signal. This gives processes that catch the SIGTERM signal an opportunity to clean up.
-signal_name
The hyphen character (with a signal name argument) sends the specified signal to processes.
-signal_number
The hyphen character (with a signal number argument) sends the specified signal, either a name, stripped of the SIG prefix (such as KILL), or a number (such as 9). For information about signal names and numbers, see the signal() system call.
-lLists signal names in numerical order (as given in the /usr/include/signal.h file), stripped of the common SIG prefix.
DESCRIPTION
This command provides a convenient means of killing all processes created by the shell that you control. When started by the superuser, the killall command kills all processes that can be terminated, except those processes that started it, the kernel processes, and processes 0 and 1 (init)
EXAMPLES
1.To stop all background processes that have started, enter:
killall
This sends all background processes signal 9 (the kill signal, also called SIGKILL).
2.To stop all background processes, giving them a chance to clean up, enter:
killall -
This sends signal 15 (SIGTERM), waits 30 seconds, and then sends signal 9 (SIGKILL).
3.To send a specific signal to the background processes, enter:
killall -2
This sends signal 2 (SIGINT) to the background processes.
4.To list the signal names in numerical order, stripped of the SIG prefix, enter:
killall -l
This displays a list of signals, which may vary from system to system.
FILES
/usr/sbin/killall
Specifies the command path
ENVIRONMENT NOTES
This section describes system features that are not generic to OSF/1 but that are provided in this OSF/1 implementation.
System V Compatibility
The root of the directory tree that contains the commands modified for SVID-2 compliance is specified in the file /etc/svid2_path. You can use /etc/svid2_profile as the basis for, or to include in, your .profile. The file /etc/svid2_profile reads /etc/svid2_path and sets the first entries in the PATH environment variable so that the modified SVID-2 commands are found first.
When you use the killall command in the SVID-2 habitat, entering the hyphen (−) character before the signal_number parameter is optional.
RELATED INFORMATION
Calls: kill(2), sigaction(2), signal(2)