History log of /src/usr.bin/pkill/pkill.c |
Revision | | Date | Author | Comments |
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
|