Commit Graph

56 Commits

Author SHA1 Message Date
wiz 1b717af45c Sort SEE ALSO. 2018-12-04 08:01:35 +00:00
sevan 61ac015f2e Note these tools use kvm(3) and not procfs as in Solaris. 2018-12-03 17:03:44 +00:00
abhinav 2f7d801ad1 Add pgrep and prenice to the NAME section 2017-10-22 17:45:46 +00:00
kre d7b1a047f9 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.)
2017-02-21 13:09:56 +00:00
sevan b99eec368e Add AUTHORS section
bump date
2016-08-22 00:15:59 +00:00
prlw1 8707c3a333 Simplify code so that gcc 4.8 can understand it.
http://mail-index.netbsd.org/tech-userlevel/2015/01/06/msg008882.html
2015-01-09 12:45:32 +00:00
apb 786efef96b Document that patterns are specified using extended regular expressions. 2013-11-01 07:49:00 +00:00
wiz d9f4f0b529 Formatting fix. 2013-06-03 21:59:41 +00:00
dholland 5cb2af665c prenice (like pgrep and pkill) won't match itself. Also fix nearby typo.
Bump date. From Ted Unangst in PR 47880.
2013-06-03 20:44:01 +00:00
dsl b374a5685e Explicitly include sys/resource.h 2013-01-02 10:36:07 +00:00
christos 1524d388a5 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.
2012-11-20 22:52:01 +00:00
enami 84d4bc7040 Fix SYNOPSIS; pkill accepts -l options since 3 years ago. `pattern' is
mandatory for all commands and `priority' is mandatory for prenice.
2010-12-07 09:00:23 +00:00
wiz 73349a6f21 Be explicit which options are available for prenice. Bump date. 2010-12-07 08:55:52 +00:00
mrg f2e8961868 add -l support to prenice, as noted by enami. 2010-12-07 07:39:15 +00:00
mrg 1153d206d6 install prenice(1) and man page links. 2010-12-06 21:16:53 +00:00
wiz c0795be10b Bump date for prenice, add serial comma, and fix an xref. 2010-12-06 08:34:28 +00:00
mrg 79ffd9c9bc add a "prenice <priority> <names>" command.
use it like "prenice -4 mplayer".
2010-12-06 04:00:11 +00:00
lukem ba2ed01c76 Fix sign-compare issues 2009-04-13 00:12:16 +00:00
wiz 30ec97f151 Drop trailing whitespace. 2009-02-28 19:21:42 +00:00
christos b90f233b82 Handle ptyfs ptys. Should probably pull up to 5. 2009-02-28 18:16:10 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
perry 8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
erh de96a26e31 Allow the -l (long format) option to be used with pkill too. 2007-03-21 20:05:18 +00:00
pavel f5e7ca2447 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.
2007-02-17 22:49:56 +00:00
ad 8966ad6a93 Further changes to use compat process flags mapped by sysctl. To be
revisited soon.
2007-02-10 18:20:12 +00:00
ad 401499f30e Sync with kernel changes introduced by merging the newlock2 branch. 2007-02-09 22:08:48 +00:00
ad 119899c354 Remove authors section, and update history where appropriate. 2006-11-13 16:33:56 +00:00
jmmv 43e0f4ee96 Fix cross-reference to grep(1). 2006-04-01 16:12:23 +00:00
wiz e60a6b4449 Wording, use more macros, xref grep(1). From jmc@openbsd. 2006-02-25 01:15:36 +00:00
wiz 5560f3fc8c Sort options; from jmc@openbsd. 2006-02-25 01:13:55 +00:00
kleink 7031652201 Exit with 2 on usage errors as documented. Noted by Christian Biere in
PR bin/21933.
2005-10-10 22:13:20 +00:00
kleink a050a27360 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.
2005-10-08 12:05:55 +00:00
dsainty de09461393 Sprinkle const liberally 2005-07-20 12:54:30 +00:00
dsainty 0de40530b6 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.
2005-07-20 12:40:27 +00:00
christos 41d3ce981c Fix more lint problems. 2005-07-16 19:50:32 +00:00
christos 0aa8a97934 WARNS=3 and remove default values. 2005-07-16 16:21:05 +00:00
christos 140eaa6eeb - KNF
- better handling of errors and messages
- pass lint
2005-07-16 16:20:35 +00:00
christos 078c5c1a41 From David Sainty: If a process dissappears while we are signalling it, don't
count it as a match/error.
2005-07-16 15:53:56 +00:00
wiz 7cd222b164 Bump date for -i. 2005-03-16 15:05:25 +00:00
sketch 8e587b4ca1 Add a -i option to ignore case in the process match. 2005-03-16 08:52:20 +00:00
abs 24cba1ac9a 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'
2005-03-02 15:31:44 +00:00
soren c87f3766c2 Make usage() not overflow 80 char lines. 2004-02-15 17:03:30 +00:00
itojun 144fd6a2bf typo fix. do not go suicide by mistake. from millert@openbsd 2004-01-06 07:35:58 +00:00
grant 2ceb845887 The correct capitalisation of 'NetBSD.org' is (you
guessed it) 'NetBSD.org'.

some mdoc fixes.
2003-02-14 15:59:16 +00:00
kleink f624532a37 Add missing -u euid option to optstring; from Michael van Elst in
PR bin/18827.
2002-10-27 11:49:34 +00:00
ad 01b2cec5c5 - System processes will never be matched.
- A dash given to `-t' matches processes with no controlling terminal.
2002-03-06 12:03:48 +00:00
ad eabe280b0e Exclude system processes when the match is inverted. 2002-03-06 12:02:18 +00:00
ad d6462e0c24 Solaris 2.7 -> 7 2002-03-04 13:49:07 +00:00
augustss ee19c52139 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.
2002-03-04 13:47:08 +00:00