Re: Three new flags for pkill/pgrep.

From: Pawel Jakub Dawidek <pjd_at_FreeBSD.org>
Date: Sat, 12 Mar 2005 15:19:41 +0100
On Fri, Mar 11, 2005 at 08:14:46PM +0100, Pawel Jakub Dawidek wrote:
+> Hi.
+> 
+> I'm attaching patches (directly from perforce) which implements three
+> new flags:
+> 
+> -F pidfile	Restrict matches to process which pid is stored in
+> 		pidfile file.
+> 
+> -i		Ignore case distinctions in both the process table and
+> 		the supplied pattern.
+> 
+> -j jid		Restrict matches to processes inside jails with a jail ID in
+> 		the comma-separated list jid.  The value zero is taken to
+> 		mean any jail ID.
+> 
+> The '-F' option will allow for more safe kill `cat /var/run/daemon.pid`,
+> because one can call it as: pkill -F /var/run/sshd.pid sshd, so if pid
+> from the file not belongs to sshd daemon, it won't be killed.
+> 
+> The '-i' flag was obtained from Jonathan Perkin's patch posted on NetBSD
+> mailing list.
+> 
+> The '-j' option is simlar to Solaris' '-z' option (for Solaris zones).
+> 
+> In addition, there is a patch which allows to print process jail ID 
+> from ps(1).

Two more patches:

pkill_09.patch - Fix '-n' option.
pkill_10.patch - Adds '-S' option to include kernel threads (only in pgrep).

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd_at_FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

Received on Sat Mar 12 2005 - 13:19:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:29 UTC