History log of /freebsd-9.3-release/bin/kill/kill.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-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 22-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


# 139969 10-Jan-2005 imp

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


# 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


# 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.


# 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.


# 76876 20-May-2001 kris

Silence WARNS=2 and BDECFLAGS on the i386 and alpha

MFC After: 1 week


# 50471 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 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.


# 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.


# 1556 26-May-1994 rgrimes

BSD 4.4 Lite bin Sources