summaryrefslogtreecommitdiffstats
path: root/bin/kill
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-212-11/+33
| | | | | | | | | | | | | | | | | 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
* Fix markup.ru2007-03-041-16/+13
|
* Add the new standard EXIT STATUS section where appropriate.ru2005-01-161-2/+2
| | | | Sort standard sections in the (documented) preferred order.
* /*- or .\"- or #- to begin license clauses.imp2005-01-102-1/+2
|
* Deal with double whitespace.ru2004-07-031-1/+1
|
* Remove clause 3 from the UCB licenses.markm2004-04-062-8/+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
|
* Markup nits: use the Ar macro when describing the -signal_name andtjr2002-06-131-5/+7
| | | | -signal_number options, and for referring to the "pid" argument.
* Add examples and diagnostics sectionstjr2002-06-131-0/+17
|
* 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.
* Correct history (again): V3 had a kill command, only it was in section 8,tjr2002-06-031-1/+1
| | | | not 1.
* Correct History section: kill(1) appeared in V4, not V6.tjr2002-06-031-1/+1
|
* 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.
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyobrien2001-12-041-2/+0
| | | | | | set WARNS=0. Reviewed by: mike
* WARNS= -> WARNS?=dd2001-06-221-1/+1
| | | | Submitted by: Mike Barcroft <mike@q9media.com>
* Silence WARNS=2 and BDECFLAGS on the i386 and alphakris2001-05-202-1/+4
| | | | MFC After: 1 week
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-4/+4
|
* Correct some hard sentence breaks. Only those surrounding the previoussheldonh1999-09-141-2/+2
| | | | | | | | 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
* Improve shell documentation:sheldonh1999-09-081-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* $Id$ -> $FreeBSD$peter1999-08-273-3/+3
|
* kill.1: Remove reference to obsolete sigvec(2) man page. Removedjkoshy1998-05-181-2/+2
| | | | | | | self reference in sigaction(2) man page. Submitted by: Josh Gilliam <josh@quick.net> PR: 6617
* Correct use of .Nm. Add rcsid.charnier1998-05-132-8/+10
|
* 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-223-3/+3
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-143-3/+3
| | | | | | | | 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-142-57/+122
|
* add a reference to killall(1)wosch1996-07-031-1/+2
|
* 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-243-0/+4
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-263-0/+269
OpenPOWER on IntegriCloud