From owner-cvs-src@FreeBSD.ORG Sun Mar 20 11:30:27 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1523E16A4CE; Sun, 20 Mar 2005 11:30:27 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4A2C43D55; Sun, 20 Mar 2005 11:30:26 +0000 (GMT) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j2KBUQW9000877; Sun, 20 Mar 2005 11:30:26 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from pjd@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j2KBUQr3000876; Sun, 20 Mar 2005 11:30:26 GMT (envelope-from pjd) Message-Id: <200503201130.j2KBUQr3000876@repoman.freebsd.org> From: Pawel Jakub Dawidek Date: Sun, 20 Mar 2005 11:30:26 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/pkill pkill.1 pkill.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2005 11:30:27 -0000 pjd 2005-03-20 11:30:26 UTC FreeBSD src repository Modified files: usr.bin/pkill pkill.1 pkill.c Log: - Introduce '-S' option which allows to match system processes (pgrep only). - Rename IS_KERNPROC() macro to PSKIP() and extend its functionality. Now it'll skip calling process and system processes when -S is not given. As a side effect it fixes '-n' option. Before it was always matching calling process (because of missing 'if (kp->ki_pid == mypid)' check) and after that, calling process was ignored. - When '-l' option is given and there are no arguments, use p_comm as an arguments list (this is helpful for kernel threads matching). Reviewed by: gad MFC after: 3 days Revision Changes Path 1.13 +3 -1 src/usr.bin/pkill/pkill.1 1.24 +18 -20 src/usr.bin/pkill/pkill.c