head	1.4;
access;
symbols
	RELENG_9_1_0_RELEASE:1.1
	RELENG_9_1:1.1.0.6
	RELENG_9_1_BP:1.1
	RELENG_9_0_0_RELEASE:1.1
	RELENG_9_0:1.1.0.4
	RELENG_9_0_BP:1.1
	RELENG_9:1.1.0.2
	RELENG_9_BP:1.1
	RELENG_8_BP:1.1;
locks; strict;
comment	@# @;


1.4
date	2013.06.18.00.33.05;	author svnexp;	state Exp;
branches;
next	1.3;

1.3
date	2012.12.30.06.03.14;	author svnexp;	state Exp;
branches;
next	1.2;

1.2
date	2012.10.21.18.25.12;	author nwhitehorn;	state Exp;
branches;
next	1.1;

1.1
date	2011.01.12.14.55.02;	author nwhitehorn;	state Exp;
branches;
next	;


desc
@@


1.4
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/251843
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@#! /bin/sh
# $Id: killall,v 1.3 2012/06/29 09:39:19 tom Exp $
# Linux has a program that does this correctly.

. ./setup-vars

for prog in $*
do
	pid=`ps -a |fgrep $prog |fgrep -v fgrep|sed -e 's/^[ ]*//' -e 's/ .*//' `
	if test -n "$pid" ; then
		echo killing pid=$pid, $prog
		kill -$SIG_HUP $pid || \
		kill -$SIG_TERM $pid || \
		kill -$SIG_KILL $pid
	fi
done
@


1.3
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/244850
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $Id: killall,v 1.2 2004/09/17 19:56:18 tom Exp $
d4 3
d12 3
a14 3
		kill -1 $pid || \
		kill -15 $pid || \
		kill -9 $pid
@


1.2
log
@SVN rev 241818 on 2012-10-21 18:25:12Z by nwhitehorn

Update dialog to 20120706: includes minor useability enhancements and
fixes for warnings encountered with clang.
@
text
@d2 1
a2 1
# $Id: killall,v 1.3 2012/06/29 09:39:19 tom Exp $
a3 3

. ./setup-vars

d9 3
a11 3
		kill -$SIG_HUP $pid || \
		kill -$SIG_TERM $pid || \
		kill -$SIG_KILL $pid
@


1.1
log
@SVN rev 217309 on 2011-01-12 14:55:02Z by nwhitehorn

Update dialog to version 20100428. This changes the license under which
dialog is distributed from GPLv2 to LGPLv2 and introduces a number of new
features and a new and better libdialog API. The existing libdialog will
be kept temporarily as libodialog for compatibility purposes until sade,
sysinstall and tzsetup have been either updated or replaced.

__FreeBSD_version is now 900030.

Discussed on:	-current
Approved by:	core
Obtained from:	http://invisible-island.net/dialog
@
text
@d2 1
a2 1
# $Id: killall,v 1.2 2004/09/17 19:56:18 tom Exp $
d4 3
d12 3
a14 3
		kill -1 $pid || \
		kill -15 $pid || \
		kill -9 $pid
@

