<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/pkill, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>pkill(1) first appeared in /usr/bin, but later it was moved to /bin</title>
<updated>2008-08-31T14:27:59+00:00</updated>
<author>
<name>Yaroslav Tykhiy</name>
<email>ytykhiy@gmail.com</email>
</author>
<published>2008-08-31T14:27:59+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=21be3b318337f81324d33fcdd361482058b9bafb'/>
<id>21be3b318337f81324d33fcdd361482058b9bafb</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>Be more accurate in the description of the -I option:</title>
<updated>2006-12-20T11:57:22+00:00</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2006-12-20T11:57:22+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0f07cf12acfaa1b5b244f457ac9bdde7c6161f85'/>
<id>0f07cf12acfaa1b5b244f457ac9bdde7c6161f85</id>
<content type='text'>
signaling to a process doesn't necessarily kill it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
signaling to a process doesn't necessarily kill it.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix and extend the -j option to pkill/pgrep WRT the jail</title>
<updated>2006-11-23T11:55:17+00:00</updated>
<author>
<name>Yaroslav Tykhiy</name>
<email>ytykhiy@gmail.com</email>
</author>
<published>2006-11-23T11:55:17+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a6afe5ada834e957bbb240dac940c329cc78f7a7'/>
<id>a6afe5ada834e957bbb240dac940c329cc78f7a7</id>
<content type='text'>
wildcard specifications.  Earlier the only wildcard syntax
was "-j 0" for "any jail".  There were at least
two shortcomings in it:  First, jail ID 0 was abused; it
meant "no jail" in other utils, e.g., ps(1).  Second, it
was impossible to match processed not in jail, which could
be useful to rc.d developers.  Therefore a new syntax is
introduced: "-j any" means any jail while "-j none" means
out of jail.  The old syntax is preserved for compatibility,
but now it's deprecated because it's limited and confusing.

Update the respective regression tests.  While I'm here,
make the tests more complex but sensitive:  Start several
processes, some in jail and some out of jail, so we can
detect that only the right processes are killed by pkill
or matched by pgrep.

Reviewed by:	gad, pjd
MFC after:	1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
wildcard specifications.  Earlier the only wildcard syntax
was "-j 0" for "any jail".  There were at least
two shortcomings in it:  First, jail ID 0 was abused; it
meant "no jail" in other utils, e.g., ps(1).  Second, it
was impossible to match processed not in jail, which could
be useful to rc.d developers.  Therefore a new syntax is
introduced: "-j any" means any jail while "-j none" means
out of jail.  The old syntax is preserved for compatibility,
but now it's deprecated because it's limited and confusing.

Update the respective regression tests.  While I'm here,
make the tests more complex but sensitive:  Start several
processes, some in jail and some out of jail, so we can
detect that only the right processes are killed by pkill
or matched by pgrep.

Reviewed by:	gad, pjd
MFC after:	1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>Tell in a comment that the symlinks from /usr/bin are</title>
<updated>2006-08-20T04:25:20+00:00</updated>
<author>
<name>Yaroslav Tykhiy</name>
<email>ytykhiy@gmail.com</email>
</author>
<published>2006-08-20T04:25:20+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6c43fb6f9e28bce2874da01091d1ce33dbcd9ca8'/>
<id>6c43fb6f9e28bce2874da01091d1ce33dbcd9ca8</id>
<content type='text'>
for compatibility with other OS types, too.

Pointed out by:		gad
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
for compatibility with other OS types, too.

Pointed out by:		gad
</pre>
</div>
</content>
</entry>
<entry>
<title>Install pkill(1), aka pgrep(1), to /bin so that rc scripts</title>
<updated>2006-08-19T08:24:01+00:00</updated>
<author>
<name>Yaroslav Tykhiy</name>
<email>ytykhiy@gmail.com</email>
</author>
<published>2006-08-19T08:24:01+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=55416ca8f7aa4c26d06dd829c6ff80b103b46b43'/>
<id>55416ca8f7aa4c26d06dd829c6ff80b103b46b43</id>
<content type='text'>
can use this small and nifty utility.  Create compatibility
symlinks from /usr/bin for the time being to avoid breaking
custom scripts relying on the hardcoded path to the utility.

If pkill(1) takes root, its source should be repocopied some
day to src/bin.

Idea by:	des
Discussed with:	brooks (in cvs-src and cvs-all)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
can use this small and nifty utility.  Create compatibility
symlinks from /usr/bin for the time being to avoid breaking
custom scripts relying on the hardcoded path to the utility.

If pkill(1) takes root, its source should be repocopied some
day to src/bin.

Idea by:	des
Discussed with:	brooks (in cvs-src and cvs-all)
</pre>
</div>
</content>
</entry>
<entry>
<title>-mdoc sweep.</title>
<updated>2005-11-18T10:36:29+00:00</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2005-11-18T10:36:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4e9e907d636ef7f776d89d98bd778f740ee69cdd'/>
<id>4e9e907d636ef7f776d89d98bd778f740ee69cdd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Sync as close as possible with NetBSD.</title>
<updated>2005-11-16T11:03:00+00:00</updated>
<author>
<name>Pawel Jakub Dawidek</name>
<email>pjd@FreeBSD.org</email>
</author>
<published>2005-11-16T11:03:00+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=53ff091d149bb93e887f04a353ce604772f69cf3'/>
<id>53ff091d149bb93e887f04a353ce604772f69cf3</id>
<content type='text'>
This includes fixes and cleanups listed below:

- If a process dissappears while we are signalling it, don't count it as a
  match/error.
- Better handling of errors and messages.
- 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.
- Exit with 2 on usage errors as documented.

Obtained from:	NetBSD
Glanced at by:	maintainer (gad) [a bit different version of this patch]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This includes fixes and cleanups listed below:

- If a process dissappears while we are signalling it, don't count it as a
  match/error.
- Better handling of errors and messages.
- 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.
- Exit with 2 on usage errors as documented.

Obtained from:	NetBSD
Glanced at by:	maintainer (gad) [a bit different version of this patch]
</pre>
</div>
</content>
</entry>
<entry>
<title>I often find myself doing:</title>
<updated>2005-11-16T10:36:44+00:00</updated>
<author>
<name>Pawel Jakub Dawidek</name>
<email>pjd@FreeBSD.org</email>
</author>
<published>2005-11-16T10:36:44+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b77640621bd5ac57b56ec983e86e5309eb4c9f5c'/>
<id>b77640621bd5ac57b56ec983e86e5309eb4c9f5c</id>
<content type='text'>
	% pgrep &lt;something&gt; [to verify which processes match]
	% pkill &lt;something&gt;

To speed such operation up, add -I option which works like rm(1)'s -i
option (unfortunately -i is already used in pkill(1)), ie. pkill will
ask for confirmation before killing each matching process.

After adding -j, -F, -i, -S, -o and -L options and other improvements,
I think I can add myself to the copyright header.

Glanced at by:	maintainer (gad)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	% pgrep &lt;something&gt; [to verify which processes match]
	% pkill &lt;something&gt;

To speed such operation up, add -I option which works like rm(1)'s -i
option (unfortunately -i is already used in pkill(1)), ie. pkill will
ask for confirmation before killing each matching process.

After adding -j, -F, -i, -S, -o and -L options and other improvements,
I think I can add myself to the copyright header.

Glanced at by:	maintainer (gad)
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert previous behaviour of '-F' option and add '-L' option, which will</title>
<updated>2005-08-25T20:10:47+00:00</updated>
<author>
<name>Pawel Jakub Dawidek</name>
<email>pjd@FreeBSD.org</email>
</author>
<published>2005-08-25T20:10:47+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=70ffddc463ac470d1b8fd9404e35ca39f791fed2'/>
<id>70ffddc463ac470d1b8fd9404e35ca39f791fed2</id>
<content type='text'>
tell pkill(1)/pgrep(1) to try to flock(2) pidfile before reading PID from
there.

Discussed with:	jhb, gad
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
tell pkill(1)/pgrep(1) to try to flock(2) pidfile before reading PID from
there.

Discussed with:	jhb, gad
</pre>
</div>
</content>
</entry>
<entry>
<title>Modify '-F' option to work nicely with pidfile(3) - a pidfile given as</title>
<updated>2005-08-24T19:38:28+00:00</updated>
<author>
<name>Pawel Jakub Dawidek</name>
<email>pjd@FreeBSD.org</email>
</author>
<published>2005-08-24T19:38:28+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=712bf6af1640d84212b3b34f65e7ebcab0cd206d'/>
<id>712bf6af1640d84212b3b34f65e7ebcab0cd206d</id>
<content type='text'>
an argument has to be locked.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
an argument has to be locked.
</pre>
</div>
</content>
</entry>
</feed>
