I dont like killall much, its not standardized across the unix like OSes.
Code:
NAME
killall - kill all active processes
SYNOPSIS
/usr/sbin/killall [ signal ]
DESCRIPTION
killall is used by shutdown(1M) to kill all active processes
not directly related to the shutdown procedure.
Code:
NAME
killall - Terminates all processes started by the user, except the calling
process
SYNOPSIS
/usr/sbin/killall [- | [-]signal_name | -signal_number]
/usr/sbin/killall -l
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).
I remember the first time I ran killall on sunbox a few years ago... never again