OPT=
case $1 in
	-*) OPT=$1; shift;;
esac
PROCS=`pidof -- "$@"`
if [ -n "$PROCS" ]
then
	kill $OPT $PROCS
else
	echo killall $@: no process killed >&2
fi
