| History log of /src/usr.bin/pkill |
| Revision | Date | Author | Comments |
| 1.6 | 18-Sep-2025 |
mrg | introduce a couple of new turn-off-gcc-warning variables and use them.
GCC 14 has a new annoying calloc() checker that we turn off in a bunch of places, and there are a few more dangling-pointer issuse that come up, but seem bogus.
|
| 1.5 | 08-Aug-2023 |
mrg | introduce new GCC 12 warning disables and use them in a few places
this introduces 4 new warning disable flags:
CC_WNO_MISSING_TEMPLATE_KEYWORD CC_WNO_REGISTER CC_WNO_STRINGOP_OVERREAD CC_WNO_ARRAY_BOUNDS
and documents them in README.warnings. of these, the string op and array bounds are both problematic (real bugs) and also spurious (not real bugs), and the other 2 are mostly temporary for older 3rd party code.
add some new uses of CC_WNO_STRINGOP_OVERFLOW.
fix m68k build for gallium and GCC 12.
|
| 1.4 | 06-Dec-2010 |
mrg | install prenice(1) and man page links.
|
| 1.3 | 13-Apr-2009 |
lukem | Fix sign-compare issues
|
| 1.2 | 16-Jul-2005 |
christos | branches: 1.2.30; WARNS=3 and remove default values.
|
| 1.1 | 01-Mar-2002 |
ad | pgrep and pkill: search the process table for processes with a particular set of characteristics, and either print or signal the matching set. Mostly compatible with the Solaris commands of the same name.
|
| 1.2.30.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
| 1.33 | 07-Oct-2024 |
roy | pkill(1): Add -F option to use a pidfile and -L to ensure it's locked
Taken from FreeBSD
|
| 1.32 | 29-Oct-2022 |
simonb | branches: 1.32.4; Add a -q option for pgrep to not print anything; similar to grep -q.
|
| 1.31 | 01-Jan-2022 |
msaitoh | s/implemenation/implementation/ in comment.
|
| 1.30 | 04-Dec-2018 |
wiz | Sort SEE ALSO.
|
| 1.29 | 03-Dec-2018 |
sevan | Note these tools use kvm(3) and not procfs as in Solaris.
|
| 1.28 | 22-Oct-2017 |
abhinav | branches: 1.28.2; 1.28.4; Add pgrep and prenice to the NAME section
|
| 1.27 | 22-Aug-2016 |
sevan | Add AUTHORS section bump date
|
| 1.26 | 01-Nov-2013 |
apb | Document that patterns are specified using extended regular expressions.
|
| 1.25 | 03-Jun-2013 |
wiz | Formatting fix.
|
| 1.24 | 03-Jun-2013 |
dholland | prenice (like pgrep and pkill) won't match itself. Also fix nearby typo. Bump date. From Ted Unangst in PR 47880.
|
| 1.23 | 07-Dec-2010 |
enami | branches: 1.23.6; 1.23.12; Fix SYNOPSIS; pkill accepts -l options since 3 years ago. `pattern' is mandatory for all commands and `priority' is mandatory for prenice.
|
| 1.22 | 07-Dec-2010 |
wiz | Be explicit which options are available for prenice. Bump date.
|
| 1.21 | 07-Dec-2010 |
mrg | add -l support to prenice, as noted by enami.
|
| 1.20 | 06-Dec-2010 |
wiz | Bump date for prenice, add serial comma, and fix an xref.
|
| 1.19 | 06-Dec-2010 |
mrg | add a "prenice <priority> <names>" command. use it like "prenice -4 mplayer".
|
| 1.18 | 28-Feb-2009 |
wiz | Drop trailing whitespace.
|
| 1.17 | 28-Feb-2009 |
christos | Handle ptyfs ptys. Should probably pull up to 5.
|
| 1.16 | 30-Apr-2008 |
martin | branches: 1.16.8; Convert TNF licenses to new 2 clause variant
|
| 1.15 | 21-Mar-2007 |
erh | branches: 1.15.10; Allow the -l (long format) option to be used with pkill too.
|
| 1.14 | 13-Nov-2006 |
ad | Remove authors section, and update history where appropriate.
|
| 1.13 | 01-Apr-2006 |
jmmv | Fix cross-reference to grep(1).
|
| 1.12 | 25-Feb-2006 |
wiz | Wording, use more macros, xref grep(1). From jmc@openbsd.
|
| 1.11 | 25-Feb-2006 |
wiz | Sort options; from jmc@openbsd.
|
| 1.10 | 16-Mar-2005 |
wiz | Bump date for -i.
|
| 1.9 | 16-Mar-2005 |
sketch | Add a -i option to ignore case in the process match.
|
| 1.8 | 14-Feb-2003 |
grant | The correct capitalisation of 'NetBSD.org' is (you guessed it) 'NetBSD.org'.
some mdoc fixes.
|
| 1.7 | 06-Mar-2002 |
ad | - System processes will never be matched. - A dash given to `-t' matches processes with no controlling terminal.
|
| 1.6 | 04-Mar-2002 |
ad | Solaris 2.7 -> 7
|
| 1.5 | 04-Mar-2002 |
ad | The first Solaris release with pkill and friends was 2.7.
|
| 1.4 | 02-Mar-2002 |
jdolecek | Add HISTORY section. I _think_ these appeared in Solaris 2.6, please fix if it's not so.
|
| 1.3 | 01-Mar-2002 |
ad | Fix typo.
|
| 1.2 | 01-Mar-2002 |
wiz | A persistent typo, and some minor mark-up improvements.
|
| 1.1 | 01-Mar-2002 |
ad | pgrep and pkill: search the process table for processes with a particular set of characteristics, and either print or signal the matching set. Mostly compatible with the Solaris commands of the same name.
|
| 1.15.10.1 | 18-May-2008 |
yamt | sync with head.
|
| 1.16.8.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
| 1.23.12.2 | 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
| 1.23.12.1 | 23-Jun-2013 |
tls | resync from head
|
| 1.23.6.1 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
| 1.28.4.1 | 10-Jun-2019 |
christos | Sync with HEAD
|
| 1.28.2.1 | 26-Dec-2018 |
pgoyette | Sync with HEAD, resolve a few conflicts
|
| 1.32.4.1 | 02-Aug-2025 |
perseant | Sync with HEAD
|
| 1.34 | 07-Oct-2024 |
roy | pkill(1): Add -F option to use a pidfile and -L to ensure it's locked
Taken from FreeBSD
|
| 1.33 | 29-Oct-2022 |
simonb | branches: 1.33.4; Add a -q option for pgrep to not print anything; similar to grep -q.
|
| 1.32 | 02-Jul-2022 |
ad | Cosmetic tweak. No functional change.
|
| 1.31 | 21-Feb-2017 |
kre | PR bin/50934 -- avoid core dump if a process being examined has set its argv[0] to NULL.
XXX Needs pullups netbsd-7-0 and netbsd-7 (bug was introduced after netbsd-6 and never pulled up, so no netbsd-6 pullups required.)
|
| 1.30 | 09-Jan-2015 |
prlw1 | branches: 1.30.2; 1.30.4; Simplify code so that gcc 4.8 can understand it. http://mail-index.netbsd.org/tech-userlevel/2015/01/06/msg008882.html
|
| 1.29 | 02-Jan-2013 |
dsl | branches: 1.29.8; Explicitly include sys/resource.h
|
| 1.28 | 20-Nov-2012 |
christos | Don't use p_comm since it is only 16 characters long and you can find the full argv[0]. It is just confusing to have a long command name, that ps shows as the long command name, and then when you try to kill it using the full command name as displayed you don't get a match. While there fix a format nit, and remove the main() declaration.
|
| 1.27 | 07-Dec-2010 |
mrg | branches: 1.27.6; 1.27.12; add -l support to prenice, as noted by enami.
|
| 1.26 | 06-Dec-2010 |
mrg | add a "prenice <priority> <names>" command. use it like "prenice -4 mplayer".
|
| 1.25 | 13-Apr-2009 |
lukem | Fix sign-compare issues
|
| 1.24 | 28-Feb-2009 |
christos | Handle ptyfs ptys. Should probably pull up to 5.
|
| 1.23 | 28-Apr-2008 |
martin | branches: 1.23.8; Remove clause 3 and 4 from TNF licenses
|
| 1.22 | 15-Dec-2007 |
perry | branches: 1.22.4; convert __attribute__s to applicable cdefs.h macros
|
| 1.21 | 21-Mar-2007 |
erh | branches: 1.21.4; Allow the -l (long format) option to be used with pkill too.
|
| 1.20 | 17-Feb-2007 |
pavel | Revert the changes done after newlock2 merge, except for the removal of the now unused LSDEAD state. The current kernel headers are now source-compatible with pre-newlock2 kernel headers again.
Approved by Andrew Doran.
|
| 1.19 | 10-Feb-2007 |
ad | Further changes to use compat process flags mapped by sysctl. To be revisited soon.
|
| 1.18 | 09-Feb-2007 |
ad | Sync with kernel changes introduced by merging the newlock2 branch.
|
| 1.17 | 25-Feb-2006 |
wiz | Sort options; from jmc@openbsd.
|
| 1.16 | 10-Oct-2005 |
kleink | Exit with 2 on usage errors as documented. Noted by Christian Biere in PR bin/21933.
|
| 1.15 | 08-Oct-2005 |
kleink | Downgrade failure to kill(2) (other than ESRCH) from fatal error to a warning; otherwise processing aborts and possibly matching killees would remain unsignalled. This makes pkill match the Solaris behavior.
|
| 1.14 | 20-Jul-2005 |
dsainty | Sprinkle const liberally
|
| 1.13 | 20-Jul-2005 |
dsainty | From discussion on tech-userlevel, change the comment formatting in the changes applied in revision 1.10. At the same time, expand the comments a bit to make the code slightly clearer. No code changes.
|
| 1.12 | 16-Jul-2005 |
christos | Fix more lint problems.
|
| 1.11 | 16-Jul-2005 |
christos | - KNF - better handling of errors and messages - pass lint
|
| 1.10 | 16-Jul-2005 |
christos | From David Sainty: If a process dissappears while we are signalling it, don't count it as a match/error.
|
| 1.9 | 16-Mar-2005 |
sketch | branches: 1.9.2; Add a -i option to ignore case in the process match.
|
| 1.8 | 02-Mar-2005 |
abs | If a user or group is not known, report the problem user/group, rather than the first user/group. Caused huge fun in error messages from large script. Old: pgrep -u root,NoSuchUser,daemon -> pgrep: unknown user `root' Now: pgrep -u root,NoSuchUser,daemon -> pgrep: unknown user `NoSuchUser'
|
| 1.7 | 15-Feb-2004 |
soren | branches: 1.7.4; Make usage() not overflow 80 char lines.
|
| 1.6 | 06-Jan-2004 |
itojun | typo fix. do not go suicide by mistake. from millert@openbsd
|
| 1.5 | 27-Oct-2002 |
kleink | Add missing -u euid option to optstring; from Michael van Elst in PR bin/18827.
|
| 1.4 | 06-Mar-2002 |
ad | branches: 1.4.2; Exclude system processes when the match is inverted.
|
| 1.3 | 04-Mar-2002 |
augustss | Fix 3 bugs in signal number decoding: * invoking pkill without any arguments gave a core * an initial numeric prefix of a signal name was ignored, e.g. -88sigint * argc was not updated when the signal number was decoded.
|
| 1.2 | 01-Mar-2002 |
ad | s/LINT/lint/
|
| 1.1 | 01-Mar-2002 |
ad | pgrep and pkill: search the process table for processes with a particular set of characteristics, and either print or signal the matching set. Mostly compatible with the Solaris commands of the same name.
|
| 1.4.2.1 | 07-Dec-2002 |
he | Pull up revision 1.5 (requested by kleink in ticket #949): Add missing ``-u euid'' option to optstring. Fixes PR#18827.
|
| 1.7.4.1 | 08-May-2005 |
snj | Pull up revision 1.8 (requested by abs in ticket #1294): If a user or group is not known, report the problem user/group, rather than the first user/group. Caused huge fun in error messages from large script. Old: pgrep -u root,NoSuchUser,daemon -> pgrep: unknown user `root' Now: pgrep -u root,NoSuchUser,daemon -> pgrep: unknown user `NoSuchUser'
|
| 1.9.2.7 | 15-Oct-2005 |
riz | Pull up following revision(s) (requested by kleink in ticket #879): usr.bin/pkill/pkill.c: revision 1.16 Exit with 2 on usage errors as documented. Noted by Christian Biere in PR bin/21933.
|
| 1.9.2.6 | 15-Oct-2005 |
riz | Pull up following revision(s) (requested by kleink in ticket #890): usr.bin/pkill/pkill.c: revision 1.15 Downgrade failure to kill(2) (other than ESRCH) from fatal error to a warning; otherwise processing aborts and possibly matching killees would remain unsignalled. This makes pkill match the Solaris behavior.
|
| 1.9.2.5 | 15-Oct-2005 |
riz | Pull up following revision(s) (requested by kleink in ticket #890): usr.bin/pkill/pkill.c: revision 1.14 Sprinkle const liberally
|
| 1.9.2.4 | 15-Oct-2005 |
riz | Pull up following revision(s) (requested by kleink in ticket #890): usr.bin/pkill/pkill.c: revision 1.13 From discussion on tech-userlevel, change the comment formatting in the changes applied in revision 1.10. At the same time, expand the comments a bit to make the code slightly clearer. No code changes.
|
| 1.9.2.3 | 15-Oct-2005 |
riz | Pull up following revision(s) (requested by kleink in ticket #890): usr.bin/pkill/pkill.c: revision 1.12 Fix more lint problems.
|
| 1.9.2.2 | 15-Oct-2005 |
riz | Pull up following revision(s) (requested by kleink in ticket #890): usr.bin/pkill/pkill.c: revision 1.11 - KNF - better handling of errors and messages - pass lint
|
| 1.9.2.1 | 15-Oct-2005 |
riz | Pull up following revision(s) (requested by kleink in ticket #890): usr.bin/pkill/pkill.c: revision 1.10 From David Sainty: If a process dissappears while we are signalling it, don't count it as a match/error.
|
| 1.21.4.1 | 09-Jan-2008 |
matt | sync with HEAD
|
| 1.22.4.1 | 18-May-2008 |
yamt | sync with head.
|
| 1.23.8.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
| 1.27.12.1 | 25-Feb-2013 |
tls | resync with head
|
| 1.27.6.2 | 23-Jan-2013 |
yamt | sync with head
|
| 1.27.6.1 | 16-Jan-2013 |
yamt | sync with (a bit old) head
|
| 1.29.8.2 | 18-Mar-2017 |
snj | Pull up following revision(s) (requested by kre in ticket #1365): usr.bin/pkill/pkill.c: revision 1.31 PR bin/50934 -- avoid core dump if a process being examined has set its argv[0] to NULL.
|
| 1.29.8.1 | 27-Jan-2015 |
martin | Pull up following revision(s) (requested by prlw1 in ticket #461): usr.bin/pkill/pkill.c: revision 1.30 Simplify code so that gcc 4.8 can understand it. http://mail-index.netbsd.org/tech-userlevel/2015/01/06/msg008882.html
|
| 1.30.4.1 | 21-Apr-2017 |
bouyer | Sync with HEAD
|
| 1.30.2.1 | 20-Mar-2017 |
pgoyette | Sync with HEAD
|
| 1.33.4.1 | 02-Aug-2025 |
perseant | Sync with HEAD
|