History log of /freebsd-9.3-release/bin/kill/
Revision Date Author Comments
267654 20-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


225736 23-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


219154 01-Mar-2011 jilles

kill: Note that this is used both as a normal program and a shell builtin.


218285 04-Feb-2011 jilles

Make sys_signame upper case.

This matches the constants from <signal.h> with 'SIG' removed, which POSIX
requires kill and trap to accept and 'kill -l' to write.

'kill -l', 'trap', 'trap -l' output is now upper case.

In Turkish locales, signal names with an upper case 'I' are now accepted,
while signal names with a lower case 'i' are no longer accepted, and the
output of 'killall -l' now contains proper capital 'I' without dot instead
of a dotted capital 'I'.


216629 21-Dec-2010 jilles

sh: Add kill builtin.

This allows specifying a %job (which is equivalent to the corresponding
process group).

Additionally, it improves reliability of kill from sh in high-load
situations and ensures "kill" finds the correct utility regardless of PATH,
as required by POSIX (unless the undocumented %builtin mechanism is used).

Side effect: fatal errors (any error other than kill(2) failure) now return
exit status 2 instead of 1. (This is consistent with other sh builtins, but
not in NetBSD.)

Code size increases about 1K on i386.

Obtained from: NetBSD


210613 29-Jul-2010 jilles

kill: Stop processing if a syntactically invalid pid is encountered.

So a command like
kill _HUP 1
now fails without sending SIGTERM to init.

The behaviour when kill(2) fails remains unchanged: processing continues.
This matches other implementations and POSIX and is useful for killing
multiple processes at once when some of them may already be gone.

PR: bin/40282


204308 25-Feb-2010 kib

Do not restrict the allowed signals that can be specified by number
to the list of signals that has symbolic name. It was impossible to
send rt signals with kill(1) due to the check.

MFC after: 1 week


167196 04-Mar-2007 ru

Fix markup.


140353 16-Jan-2005 ru

Add the new standard EXIT STATUS section where appropriate.
Sort standard sections in the (documented) preferred order.


139969 10-Jan-2005 imp

/*- or .\"- or #- to begin license clauses.


131505 03-Jul-2004 ru

Deal with double whitespace.


127958 06-Apr-2004 markm

Remove clause 3 from the UCB licenses.

OK'ed by: imp, core


127005 15-Mar-2004 jmallett

static and const.


125156 28-Jan-2004 njl

Use sys_nsig instead of the static NSIG. DragonflyBSD kill.c:1.3

Obtained from: DragonflyBSD


114433 01-May-2003 obrien

Quiet warnings about copyright[].


99109 30-Jun-2002 obrien

Consistently use __FBSDID


98161 13-Jun-2002 tjr

Markup nits: use the Ar macro when describing the -signal_name and
-signal_number options, and for referring to the "pid" argument.


98160 13-Jun-2002 tjr

Add examples and diagnostics sections


98158 13-Jun-2002 tjr

Support the "--" end of options marker, useful to disambiguate between
signal numbers and process groups (negative pid arguments), and
required by SUSv3.


97772 03-Jun-2002 tjr

Correct history (again): V3 had a kill command, only it was in section 8,
not 1.


97767 03-Jun-2002 tjr

Correct History section: kill(1) appeared in V4, not V6.


90110 02-Feb-2002 imp

o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style
o register has been removed
o prototype for main() has been removed (gcc3 makes it an error)
o int main(int argc, char *argv[]) is the preferred main definition.
o Attempt to not break style(9) conformance for declarations more than
they already are.


87323 04-Dec-2001 obrien

Default to WARNS=2. Binary builds that cannot handle this must explicitly
set WARNS=0.

Reviewed by: mike


78624 22-Jun-2001 dd

WARNS= -> WARNS?=

Submitted by: Mike Barcroft <mike@q9media.com>


76876 20-May-2001 kris

Silence WARNS=2 and BDECFLAGS on the i386 and alpha

MFC After: 1 week


68935 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


51275 14-Sep-1999 sheldonh

Correct some hard sentence breaks. Only those surrounding the previous
commit and those which cause ugly nroff output have been fixed, since
the purpose of the style guideline which they contravene is to reduce
the sizes of deltas.

Reported by: bde


51090 08-Sep-1999 sheldonh

Improve shell documentation:

* Consistently misspell built-in as builtin.

* Add a builtin(1) manpage and create builtin(1) MLINKS for all shell
builtin commands for which no standalone utility exists. These MLINKS
replace those that were created for csh(1).

* Add appropriate xrefs for builtin(1) to the csh(1) and sh(1) manpages,
as well as to the manpages of standalone utilities which are supported
as shell builtin commands in at least one of the shells. In such
manpages, explain that similar functionality may be provided as a
shell builtin command.

* Improve sh(1)'s description of the cd builtin command. Csh(1) already
describes it adequately. Replace the cd(1) manpage with a builtin(1)
MLINKS link.

* Clean up some mdoc problems: use Xr instead of literal "foo(n)"; use
Ic instead of Xr for shell builtin commands.

* Undo English contractions.

Reviewed by: mpp, rgrimes


50471 27-Aug-1999 peter

$Id$ -> $FreeBSD$


36143 18-May-1998 jkoshy

kill.1: Remove reference to obsolete sigvec(2) man page. Removed
self reference in sigaction(2) man page.

Submitted by: Josh Gilliam <josh@quick.net>
PR: 6617


36012 13-May-1998 charnier

Correct use of .Nm. Add rcsid.


28554 21-Aug-1997 jlemon

Disallow empty arguments (eg: '') as process ids.
PR: 2631
Submitted by: Arne Henrik Juul <arnej@imf.unit.no>


26465 06-Jun-1997 charnier

Cosmetic change in usage string.


26404 03-Jun-1997 charnier

Signal # NSIG (32) is invalid.
Obtained from: {Net|Open}BSD


22988 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


20416 14-Dec-1996 steve

Merge Lite2 mods, and -Wall cleaning.


16950 03-Jul-1996 wosch

add a reference to killall(1)


6908 05-Mar-1995 jkh

Allow 0 as a signal number to match the man page.
Noticed by: Mike Murphy <mrm@Sceard.COM>


3044 24-Sep-1994 dg

Added $Id$


1557 26-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1556,
which included commits to RCS files with non-trunk default branches.