summaryrefslogtreecommitdiffstats
path: root/bin/pkill
Commit message (Collapse)AuthorAgeFilesLines
* MFC r287012:jamie2015-08-295-21/+78
| | | | | | | Make pkill/pgrep -j ARG take jname, not just jid. PR: 201588 Submitted by: Daniel Shahaf <danielsh at apache.org>
* Merge: 278618 278633 278636 278653 278742 278776 279121rodrigc2015-05-232-142/+128
| | | | | | Multiple fixes for pgrep and pkill tests. PR: 19109
* MFC r272305rodrigc2014-10-052-53/+106
| | | | Fix pkill unit test.
* MFC r269977asomers2014-08-181-0/+2
| | | | | | | | Skip pgrep-j and pkill-j if jail or jls is not installed. Even though jail is part of the base system, it can be disabled by src.conf settings. Therefore, it should be listed as a required program for tests that use it.
* MFC various moves of tools/regressions/ tests to the new infrastructure.jmmv2014-04-2730-0/+1053
| | | | | | | | | | | | | | | | - r263220 Migrate tools/regression/sbin/ to the new tests layout. - r263222 Add Makefile missed in r263220. - r263226 Migrate tools/regression/{usr.bin/lastcomm,usr.sbin}/ to the new tests layout. - r263227 Migrate most of tools/regression/usr.bin/ to the new tests layout. - r263345 Expand tabs that sneaked in into spaces. - r263346 Migrate tools/regression/usr.bin/make/ to the new tests layout. - r263348 Add Makefiles missed in r263346. - r263351 Migrate tools/regression/usr.bin/pkill/ to the new tests layout. - r263388 Mark multi_test as requiring /usr/share/dict/words. - r263814 Fix path to the run.pl script to let these tests run. - r264742 Prevent building tests when bootstrapping make. This is 'make tinderbox' clean.
* Remove useless check - ki_loginclass is an array; can't be NULL.trasz2013-10-041-1/+0
| | | | | | | CID: 1006559 Approved by: re (kib) MFC after: 2 weeks Sponsored by: FreeBSD Foundation
* Add -c flag to pgrep(1) and pkill(1), to match login classes.trasz2013-08-092-8/+42
| | | | MFC after: 1 month
* 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'.
* Add -l to the synopsisbrian2010-07-121-1/+1
| | | | | Submitted by: jhell at dataix dot net MFC after: 3 days
* Recognise the -l switch with pkill - list kill command(s) used.brian2010-06-202-8/+16
| | | | | | PR: 143558 Submitted by: eitanadlerlist at gmail dot com MFC after: 3 weeks
* The NetBSD Foundation has granted permission to remove clause 3 and 4 fromjoel2010-03-022-14/+0
| | | | | | | their software. Approved by: pjd Obtained from: NetBSD
* - Implement -q option for pgrep(1).pjd2010-02-122-5/+20
| | | | - Add regression test to test -q option.
* Initialize the execfile argument to NULL instead of _PATH_DEVNULL. This ↵brucec2010-02-081-1/+2
| | | | | | | | allows the -M option to be used without specifying -N. PR: bin/138146 Approved by: rrs (mentor) MFC after: 3 days
* Raise WARNS for various tools where possible.ed2010-01-171-1/+0
| | | | Submitted by: Marius Nünnerich <marius@nuenneri.ch>
* Committed the wrong version in r201484. This time really fix the "-t"obrien2010-01-041-4/+14
| | | | | | functionality. Per the regression tests (pgrep-t.t & pkill-t.t), "-t" should accept "v1", which means a plain number should be accepted for UNIX98-style PTY's.
* Fix the "-t" functionality. Per the regression tests (pgrep-t.t & pkill-t.t),obrien2010-01-041-3/+4
| | | | | "-t" should accept "v1", which means a plain number should be accepted for UNIX98-style PTY's.
* (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.antoine2009-12-281-8/+8
| | | | | | | | | Fix some wrong usages. Note: this does not affect generated binaries as this argument is not used. PR: 137213 Submitted by: Eygene Ryabinkin (initial version) MFC after: 1 month
* When finding processes, ignore ourself and our ancestors. It is almostbrian2009-05-172-5/+40
| | | | | | | | | always surprising when you kill a 'sh -c ...' ancestor or when you kill yourself when using -f. Add a -a switch for backwards compatibility. MFC after: 3 weeks
* Improve the `pkill -t' handling, which I changed in my previous commit.ed2008-09-302-11/+14
| | | | | | | | | In my previous commit I disabled pkill(1)'s automatic prepending of the "tty" string when `pkill -t' was being used. Re-enable it and stat() both possible device names when called. Requested by: jhb, rwatson (MFC) MFC after: 1 month
* Don't automatically prepend the "tty" prefix to `pkill -t' arguments.ed2008-09-282-9/+5
| | | | | | | | | | Because we now enforce UNIX98-style PTY's, we now use a lot of TTY's that don't have the traditional /dev/ttyXX naming scheme. pkill(1)'s -t flag automatically prepended the word "tty" to each TTY that was passed on the command line. This meant that `pkill -t pts/0' was actually converted to /dev/ttypts/0. Disable this broken behaviour for now. Reported by: erwin
* pkill(1) first appeared in /usr/bin, but later it was moved to /binyar2008-08-313-0/+1061
for the convenience of rc.d. Now it has happily lived there for quite a while. So move the pkill(1) source files from usr.bin to bin, too. Approved by: gad
OpenPOWER on IntegriCloud