The NetBSD Project

CVS log for src/usr.bin/pkill/pkill.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / pkill

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.33 / (download) - annotate - [select for diffs], Sat Oct 29 08:17:16 2022 UTC (15 months, 3 weeks ago) by simonb
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.32: +13 -4 lines
Diff to previous 1.32 (colored)

Add a -q option for pgrep to not print anything; similar to grep -q.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Jul 2 20:50:26 2022 UTC (19 months, 3 weeks ago) by ad
Branch: MAIN
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (colored)

Cosmetic tweak.  No functional change.

Revision 1.30.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:15 2017 UTC (6 years, 10 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.30: +5 -3 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Sync with HEAD

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:58:05 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.30: +5 -3 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Sync with HEAD

Revision 1.29.8.2 / (download) - annotate - [select for diffs], Sat Mar 18 05:13:22 2017 UTC (6 years, 11 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.29.8.1: +5 -3 lines
Diff to previous 1.29.8.1 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored)

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.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Feb 21 13:09:56 2017 UTC (7 years ago) by kre
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-socketcan-base1
Changes since 1.30: +5 -3 lines
Diff to previous 1.30 (colored)



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.)

Revision 1.29.8.1 / (download) - annotate - [select for diffs], Tue Jan 27 13:39:31 2015 UTC (9 years ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.29: +3 -4 lines
Diff to previous 1.29 (colored)

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

Revision 1.30 / (download) - annotate - [select for diffs], Fri Jan 9 12:45:32 2015 UTC (9 years, 1 month ago) by prlw1
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.29: +3 -4 lines
Diff to previous 1.29 (colored)

Simplify code so that gcc 4.8 can understand it.
http://mail-index.netbsd.org/tech-userlevel/2015/01/06/msg008882.html

Revision 1.27.12.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:38 2013 UTC (11 years ago) by tls
Branch: tls-maxphys
Changes since 1.27: +11 -12 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

resync with head

Revision 1.27.6.2 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:40 2013 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.27.6.1: +3 -2 lines
Diff to previous 1.27.6.1 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored)

sync with head

Revision 1.27.6.1 / (download) - annotate - [select for diffs], Wed Jan 16 05:34:07 2013 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
Changes since 1.27: +10 -12 lines
Diff to previous 1.27 (colored)

sync with (a bit old) head

Revision 1.29 / (download) - annotate - [select for diffs], Wed Jan 2 10:36:07 2013 UTC (11 years, 1 month ago) by dsl
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-base, agc-symver-base, agc-symver
Branch point for: netbsd-7
Changes since 1.28: +3 -2 lines
Diff to previous 1.28 (colored)

Explicitly include sys/resource.h

Revision 1.28 / (download) - annotate - [select for diffs], Tue Nov 20 22:52:01 2012 UTC (11 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base7
Changes since 1.27: +10 -12 lines
Diff to previous 1.27 (colored)

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.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Dec 7 07:39:15 2010 UTC (13 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.26: +29 -17 lines
Diff to previous 1.26 (colored)

add -l support to prenice, as noted by enami.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Dec 6 04:00:11 2010 UTC (13 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.25: +119 -68 lines
Diff to previous 1.25 (colored)

add a "prenice <priority> <names>" command.
use it like "prenice -4 mplayer".

Revision 1.23.8.1 / (download) - annotate - [select for diffs], Wed May 13 19:20:01 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.23: +21 -19 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.25 / (download) - annotate - [select for diffs], Mon Apr 13 00:12:16 2009 UTC (14 years, 10 months ago) by lukem
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.24: +7 -7 lines
Diff to previous 1.24 (colored)

Fix sign-compare issues

Revision 1.24 / (download) - annotate - [select for diffs], Sat Feb 28 18:16:11 2009 UTC (14 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.23: +16 -14 lines
Diff to previous 1.23 (colored)

Handle ptyfs ptys. Should probably pull up to 5.

Revision 1.22.4.1 / (download) - annotate - [select for diffs], Sun May 18 12:36:09 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.22: +2 -9 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

sync with head.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:14 2008 UTC (15 years, 9 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase
Branch point for: jym-xensuspend
Changes since 1.22: +2 -9 lines
Diff to previous 1.22 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.21.4.1 / (download) - annotate - [select for diffs], Wed Jan 9 02:00:51 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

sync with HEAD

Revision 1.22 / (download) - annotate - [select for diffs], Sat Dec 15 19:44:52 2007 UTC (16 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base
Branch point for: yamt-pf42
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

convert __attribute__s to applicable cdefs.h macros

Revision 1.21 / (download) - annotate - [select for diffs], Wed Mar 21 20:05:18 2007 UTC (16 years, 11 months ago) by erh
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: matt-armv6
Changes since 1.20: +5 -5 lines
Diff to previous 1.20 (colored)

Allow the -l (long format) option to be used with pkill too.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Feb 17 22:49:57 2007 UTC (17 years ago) by pavel
Branch: MAIN
Changes since 1.19: +7 -7 lines
Diff to previous 1.19 (colored)

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.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Feb 10 18:20:12 2007 UTC (17 years ago) by ad
Branch: MAIN
Changes since 1.18: +6 -6 lines
Diff to previous 1.18 (colored)

Further changes to use compat process flags mapped by sysctl. To be
revisited soon.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Feb 9 22:08:49 2007 UTC (17 years ago) by ad
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Sync with kernel changes introduced by merging the newlock2 branch.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Feb 25 01:13:55 2006 UTC (18 years ago) by wiz
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (colored)

Sort options; from jmc@openbsd.

Revision 1.9.2.7 / (download) - annotate - [select for diffs], Sat Oct 15 16:36:44 2005 UTC (18 years, 4 months ago) by riz
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.9.2.6: +3 -3 lines
Diff to previous 1.9.2.6 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

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.

Revision 1.9.2.6 / (download) - annotate - [select for diffs], Sat Oct 15 16:34:24 2005 UTC (18 years, 4 months ago) by riz
Branch: netbsd-3
Changes since 1.9.2.5: +11 -8 lines
Diff to previous 1.9.2.5 (colored) to branchpoint 1.9 (colored)

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.

Revision 1.9.2.5 / (download) - annotate - [select for diffs], Sat Oct 15 16:34:04 2005 UTC (18 years, 4 months ago) by riz
Branch: netbsd-3
Changes since 1.9.2.4: +10 -9 lines
Diff to previous 1.9.2.4 (colored) to branchpoint 1.9 (colored)

Pull up following revision(s) (requested by kleink in ticket #890):
	usr.bin/pkill/pkill.c: revision 1.14
Sprinkle const liberally

Revision 1.9.2.4 / (download) - annotate - [select for diffs], Sat Oct 15 16:33:46 2005 UTC (18 years, 4 months ago) by riz
Branch: netbsd-3
Changes since 1.9.2.3: +17 -13 lines
Diff to previous 1.9.2.3 (colored) to branchpoint 1.9 (colored)

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.

Revision 1.9.2.3 / (download) - annotate - [select for diffs], Sat Oct 15 16:33:15 2005 UTC (18 years, 4 months ago) by riz
Branch: netbsd-3
Changes since 1.9.2.2: +8 -7 lines
Diff to previous 1.9.2.2 (colored) to branchpoint 1.9 (colored)

Pull up following revision(s) (requested by kleink in ticket #890):
	usr.bin/pkill/pkill.c: revision 1.12
Fix more lint problems.

Revision 1.9.2.2 / (download) - annotate - [select for diffs], Sat Oct 15 16:32:20 2005 UTC (18 years, 4 months ago) by riz
Branch: netbsd-3
Changes since 1.9.2.1: +75 -67 lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored)

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

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Sat Oct 15 16:31:50 2005 UTC (18 years, 4 months ago) by riz
Branch: netbsd-3
Changes since 1.9: +28 -11 lines
Diff to previous 1.9 (colored)

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.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Oct 10 22:13:20 2005 UTC (18 years, 4 months ago) by kleink
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

Exit with 2 on usage errors as documented.  Noted by Christian Biere in
PR bin/21933.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Oct 8 12:05:55 2005 UTC (18 years, 4 months ago) by kleink
Branch: MAIN
Changes since 1.14: +11 -8 lines
Diff to previous 1.14 (colored)

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.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jul 20 12:54:30 2005 UTC (18 years, 7 months ago) by dsainty
Branch: MAIN
Changes since 1.13: +10 -9 lines
Diff to previous 1.13 (colored)

Sprinkle const liberally

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jul 20 12:40:27 2005 UTC (18 years, 7 months ago) by dsainty
Branch: MAIN
Changes since 1.12: +17 -13 lines
Diff to previous 1.12 (colored)

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.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jul 16 19:50:32 2005 UTC (18 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.11: +8 -7 lines
Diff to previous 1.11 (colored)

Fix more lint problems.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Jul 16 16:20:35 2005 UTC (18 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.10: +75 -67 lines
Diff to previous 1.10 (colored)

- KNF
- better handling of errors and messages
- pass lint

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jul 16 15:53:56 2005 UTC (18 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.9: +28 -11 lines
Diff to previous 1.9 (colored)

From David Sainty: If a process dissappears while we are signalling it, don't
count it as a match/error.

Revision 1.7.4.1 / (download) - annotate - [select for diffs], Sun May 8 17:34:08 2005 UTC (18 years, 9 months ago) by snj
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

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'

Revision 1.9 / (download) - annotate - [select for diffs], Wed Mar 16 08:52:20 2005 UTC (18 years, 11 months ago) by sketch
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.8: +10 -6 lines
Diff to previous 1.8 (colored)

Add a -i option to ignore case in the process match.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Mar 2 15:31:44 2005 UTC (18 years, 11 months ago) by abs
Branch: MAIN
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored)

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'

Revision 1.7 / (download) - annotate - [select for diffs], Sun Feb 15 17:03:30 2004 UTC (20 years ago) by soren
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0
Branch point for: netbsd-2
Changes since 1.6: +6 -4 lines
Diff to previous 1.6 (colored)

Make usage() not overflow 80 char lines.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jan 6 07:35:58 2004 UTC (20 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)

typo fix.  do not go suicide by mistake.  from millert@openbsd

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Sat Dec 7 23:19:40 2002 UTC (21 years, 2 months ago) by he
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Pull up revision 1.5 (requested by kleink in ticket #949):
  Add missing ``-u euid'' option to optstring.  Fixes PR#18827.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Oct 27 11:49:34 2002 UTC (21 years, 4 months ago) by kleink
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Add missing -u euid option to optstring; from Michael van Elst in
PR bin/18827.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Mar 6 12:02:18 2002 UTC (21 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1
Branch point for: netbsd-1-6
Changes since 1.3: +5 -2 lines
Diff to previous 1.3 (colored)

Exclude system processes when the match is inverted.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Mar 4 13:47:08 2002 UTC (21 years, 11 months ago) by augustss
Branch: MAIN
Changes since 1.2: +8 -6 lines
Diff to previous 1.2 (colored)

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.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Mar 1 11:29:46 2002 UTC (21 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.1: +4 -4 lines
Diff to previous 1.1 (colored)

s/LINT/lint/

Revision 1.1 / (download) - annotate - [select for diffs], Fri Mar 1 11:21:58 2002 UTC (21 years, 11 months ago) by ad
Branch: MAIN

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.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>