summaryrefslogtreecommitdiffstats
path: root/bin/kill/kill.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove cast that was only required for K&R C.eadler2013-04-281-1/+1
| | | | Reviewed by: jilles
* kill: Note that this is used both as a normal program and a shell builtin.jilles2011-03-011-0/+4
|
* Make sys_signame upper case.jilles2011-02-041-1/+1
| | | | | | | | | | | | 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'.
* sh: Add kill builtin.jilles2010-12-211-11/+32
| | | | | | | | | | | | | | | | | 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
* kill: Stop processing if a syntactically invalid pid is encountered.jilles2010-07-291-4/+3
| | | | | | | | | | | | 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
* Do not restrict the allowed signals that can be specified by numberkib2010-02-251-1/+1
| | | | | | | 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
* /*- or .\"- or #- to begin license clauses.imp2005-01-101-1/+1
|
* Remove clause 3 from the UCB licenses.markm2004-04-061-4/+0
| | | | OK'ed by: imp, core
* static and const.jmallett2004-03-151-10/+10
|
* Use sys_nsig instead of the static NSIG. DragonflyBSD kill.c:1.3njl2004-01-281-5/+5
| | | | Obtained from: DragonflyBSD
* Quiet warnings about copyright[].obrien2003-05-011-2/+2
|
* Consistently use __FBSDIDobrien2002-06-301-2/+2
|
* Support the "--" end of options marker, useful to disambiguate betweentjr2002-06-131-1/+4
| | | | | signal numbers and process groups (negative pid arguments), and required by SUSv3.
* o __P has been reovedimp2002-02-021-15/+9
| | | | | | | | | 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.
* Silence WARNS=2 and BDECFLAGS on the i386 and alphakris2001-05-201-1/+2
| | | | MFC After: 1 week
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Correct use of .Nm. Add rcsid.charnier1998-05-131-3/+5
|
* Disallow empty arguments (eg: '') as process ids.jlemon1997-08-211-4/+4
| | | | | PR: 2631 Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
* Cosmetic change in usage string.charnier1997-06-061-5/+6
|
* Signal # NSIG (32) is invalid.charnier1997-06-031-2/+2
| | | | Obtained from: {Net|Open}BSD
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | 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.
* Merge Lite2 mods, and -Wall cleaning.steve1996-12-141-29/+71
|
* Allow 0 as a signal number to match the man page.jkh1995-03-051-2/+2
| | | | Noticed by: Mike Murphy <mrm@Sceard.COM>
* Added $Id$dg1994-09-241-0/+2
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-261-0/+144
OpenPOWER on IntegriCloud