Skip to content

Instantly share code, notes, and snippets.

@offby1
Created July 22, 2009 23:16
Show Gist options
  • Select an option

  • Save offby1/152389 to your computer and use it in GitHub Desktop.

Select an option

Save offby1/152389 to your computer and use it in GitHub Desktop.
# XXX says that it's bad to form the habit of using
# killall, since on Solaris it ... er ... kills all the processes on
# the system. Better to use pkill.
if [ -n "$(type -p killall)" ]; then
killall ()
{
echo "Use \`pkill' instead."
}
pkill ()
{
command killall "$@"
}
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment