aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/killall
Commit message (Collapse)AuthorAgeFilesLines
* Simplify various code that allowed for sys_signame being lower case.Jilles Tjoelker2011-03-061-16/+3
| | | | | | | This was changed in r218285. Notes: svn path=/head/; revision=219347
* Make sys_signame upper case.Jilles Tjoelker2011-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'. Notes: svn path=/head/; revision=218285
* mdoc: move remaining sections into consistent orderUlrich Spörlein2010-05-131-11/+11
| | | | | | | | | | This pertains mostly to FILES, HISTORY, EXIT STATUS and AUTHORS sections. Found by: mdocml lint run Reviewed by: ru Notes: svn path=/head/; revision=208028
* mdoc: order prologue macros consistently by Dd/Dt/OsUlrich Spörlein2010-04-141-1/+1
| | | | | | | | | | | Although groff_mdoc(7) gives another impression, this is the ordering most widely used and also required by mdocml/mandoc. Reviewed by: ru Approved by: philip, ed (mentors) Notes: svn path=/head/; revision=206622
* Fix grammar and reduce ambiguity.Xin LI2009-12-261-3/+3
| | | | | | | Submitted by: b. f. <bf1783 googlemail com> Notes: svn path=/head/; revision=201010
* Document the difference between FreeBSD and traditional System V killallXin LI2009-12-251-1/+12
| | | | | | | | | commands. MFC after: 1 month Notes: svn path=/head/; revision=200981
* Revert most part of 200420 as requested, as more review and polish isXin LI2009-12-131-0/+2
| | | | | | | needed. Notes: svn path=/head/; revision=200462
* Remove unneeded header includes from usr.bin/ except contributed code.Xin LI2009-12-111-2/+0
| | | | | | | Tested with: make universe Notes: svn path=/head/; revision=200420
* Add libjail, a (somewhat) simpler interface to the jail_set and jail_getJamie Gritton2009-06-242-13/+6
| | | | | | | | | system calls and the security.jail.param sysctls. Approved by: bz (mentor) Notes: svn path=/head/; revision=194869
* Add support for the arbitrary named jail parameters used by jail_set(2)Jamie Gritton2009-05-272-11/+22
| | | | | | | | | | | | | | | | | and jail_get(2). Jail(8) can now create jails using a "name=value" format instead of just specifying a limited set of fixed parameters; it can also modify parameters of existing jails. Jls(8) can display all parameters of jails, or a specified set of parameters. The available parameters are gathered from the kernel, and not hard-coded into these programs. Small patches on killall(1) and jexec(8) to support jail names with jail_get(2). Approved by: bz (mentor) Notes: svn path=/head/; revision=192896
* Use strlcpy() where appropriate.Xin LI2008-11-191-4/+2
| | | | Notes: svn path=/head/; revision=185074
* Fix a typo.Ruslan Ermilov2007-11-091-1/+1
| | | | Notes: svn path=/head/; revision=173506
* - Fix documentation to match code. Specifically, -c doesn't haveRuslan Ermilov2007-11-091-21/+15
| | | | | | | | | | to be specified together with either -u or -t to have an effect, and exit status of 2 is not possible after a Perl->C conversion. - While here, fix markup. Notes: svn path=/head/; revision=173504
* Fix numerous bugs when parsing options and arguments.Ruslan Ermilov2007-11-091-9/+19
| | | | Notes: svn path=/head/; revision=173502
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-2/+2
| | | | Notes: svn path=/head/; revision=140368
* The signal number has to be less than NSIG strictly.Maxim Konovalov2004-07-291-1/+1
| | | | | | | | | PR: misc/69768 Submitted by: bronek MFC after: 1 week Notes: svn path=/head/; revision=132851
* Don't pass negative values into <ctype.h> functions on machinesTim J. Robbins2004-07-151-3/+3
| | | | | | | with signed chars. Notes: svn path=/head/; revision=132193
* Print size_t with %zu, not %d.Tim J. Robbins2004-07-151-1/+1
| | | | Notes: svn path=/head/; revision=132192
* Respect locale settings from the environment.Tim J. Robbins2004-07-151-0/+3
| | | | Notes: svn path=/head/; revision=132191
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-5/+9
| | | | Notes: svn path=/head/; revision=131491
* Bump document date on behalf of the -e option.Ruslan Ermilov2004-05-181-2/+2
| | | | | | | Spell "ID" correctly. Notes: svn path=/head/; revision=129406
* Add a cross-reference to pkill(1), now that pkill is hooked up to the build.Garance A Drosehn2004-03-271-0/+1
| | | | Notes: svn path=/head/; revision=127511
* New -e flag, modifies the behavior of the -u uid flag to use theDiomidis Spinellis2004-01-262-4/+16
| | | | | | | | | effective user id, instead of the real user id. MFC after: 2 weeks Notes: svn path=/head/; revision=125013
* Serial murderers shouldn't commit suicide. (killall shouldColin Percival2004-01-221-0/+4
| | | | | | | | | | avoid killing itself.) PR: bin/46107 Submitted by: stacey <stacey_@starwhack.net> Notes: svn path=/head/; revision=124844
* o -m flags contructs case sensitive RE, not case insensitive.Maxim Konovalov2004-01-181-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=124682
* o Sync usage() and man page synopsis with reality.Maxim Konovalov2004-01-182-9/+3
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=124681
* Use the 3-component version of the KERN_PROC_PROC sysctl.Tim J. Robbins2003-09-271-1/+3
| | | | Notes: svn path=/head/; revision=120500
* Use KERN_PROC_PROC instead of KERN_PROC_ALL when enumerating processes soTim J. Robbins2003-09-071-7/+4
| | | | | | | | that we kill each process once, not once for every thread it owns. This avoids "No such process" warnings when killing threaded processes. Notes: svn path=/head/; revision=119834
* make "killall -j" not core dump.Warner Losh2003-04-271-0/+2
| | | | | | | Submitted by: Joe Marcus Clarke in current@ Notes: svn path=/head/; revision=114120
* o Add jls(8) for listing active jails.Mike Barcroft2003-04-092-4/+28
| | | | | | | | | | o Add jexec(8) to execute a command in an existing jail. o Add -j option for killall(1) to kill all processes in a specified jail. o Add -i option to jail(8) to output jail ID of newly created jail. Notes: svn path=/head/; revision=113277
* Header was included twice. Hardcode program name in usage string.Philippe Charnier2003-02-051-5/+1
| | | | Notes: svn path=/head/; revision=110400
* s/progname/procname/ to be consistent with the other occurrencesRalf S. Engelschall2002-07-151-1/+1
| | | | | | | of the option -c argument in SYNOPSIS and DESCRIPTION. Notes: svn path=/head/; revision=100067
* Consistently use FBSDIDDavid E. O'Brien2002-06-301-2/+3
| | | | Notes: svn path=/head/; revision=99112
* mdoc(7) police: lint.Ruslan Ermilov2002-05-291-1/+1
| | | | Notes: svn path=/head/; revision=97503
* Mark a warning as such. Without this, it isn't obvious whetherDima Dorfman2002-05-201-2/+2
| | | | | | | | killall stopped after failing to kill one process or whether it kept going. Notes: svn path=/head/; revision=96976
* Use `The .Nm utility'Philippe Charnier2002-04-201-3/+4
| | | | Notes: svn path=/head/; revision=95124
* Skip zombies. Add an option (-z) to revert to the historical behaviourDag-Erling Smørgrav2002-04-142-0/+11
| | | | | | | | of trying to kill zombies (which has no effect except emit a few error messages) Notes: svn path=/head/; revision=94689
* Use the method described in the strtol man page to check if it parsedDavid Malone2002-03-301-1/+1
| | | | | | | the entire string. This avoids signed/unsigned comparison. Notes: svn path=/head/; revision=93432
* killall operates on all processes owned by the real uid, not theBrian S. Dean2001-11-301-2/+2
| | | | | | | | | effective uid. MFC after: 3 days Notes: svn path=/head/; revision=87105
* Compensate for "Compensate for header dethreading" by backing it out.Bruce Evans2001-10-101-1/+0
| | | | Notes: svn path=/head/; revision=84768
* mdoc(7) police:Ruslan Ermilov2001-08-071-1/+2
| | | | | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block. Notes: svn path=/head/; revision=81251
* Remove whitespace at EOL.Dima Dorfman2001-07-151-5/+5
| | | | Notes: svn path=/head/; revision=79755
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79535
* Allow -u to work with UID's also.David E. O'Brien2001-06-121-6/+9
| | | | | | | Submitted by: Seth Kingsley <seth.kingsley@windriver.com> Notes: svn path=/head/; revision=78144
* Fix an array which was too small.Poul-Henning Kamp2001-05-161-1/+1
| | | | | | | | PR: 27380 Submitted by: Samuel Greear <sgreear@vsni.com> Notes: svn path=/head/; revision=76678
* Compensate for header dethreading.Mark Murray2001-05-011-0/+1
| | | | Notes: svn path=/head/; revision=76169
* Work around the p_comm[] size limit. If the user supplies more thanPeter Wemm2001-02-141-1/+1
| | | | | | | | | | 16 characters, only check the first 16 since that is all the kernel records. This isn't ideal, but it is probably the best we can do. Otherwise, "killall communicator-linux-4.76.bin" will not match the process as the kernel only records "communicator-lin". Notes: svn path=/head/; revision=72497
* Fix typo: -c -> -tAndrey A. Chernov2001-01-211-1/+1
| | | | Notes: svn path=/head/; revision=71310
* Make "killall -t p0" really works.Andrey A. Chernov2001-01-211-1/+2
| | | | | | | Old code works only if at least one process name additionly specified. Notes: svn path=/head/; revision=71309
* Use the real user ID so non-root users can kill setuid processesPaul Saab2000-12-251-1/+1
| | | | | | | | | | they started. PR: 23356 Submitted by: Maxim Konovalov <maxim@macomnet.ru> Notes: svn path=/head/; revision=70350