From owner-cvs-all@FreeBSD.ORG Wed Nov 16 12:42:00 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.ORG Delivered-To: cvs-all@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E66A16A41F; Wed, 16 Nov 2005 12:42:00 +0000 (GMT) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id 331E343D5C; Wed, 16 Nov 2005 12:41:44 +0000 (GMT) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.13.4/8.13.4) with ESMTP id jAGCfhj8002148; Wed, 16 Nov 2005 15:41:43 +0300 (MSK) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.13.4/8.13.4/Submit) id jAGCfh7I002147; Wed, 16 Nov 2005 15:41:43 +0300 (MSK) (envelope-from ache) Date: Wed, 16 Nov 2005 15:41:43 +0300 From: Andrey Chernov To: Pawel Jakub Dawidek Message-ID: <20051116124143.GA2104@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Pawel Jakub Dawidek , src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG References: <200511161103.jAGB30d4062758@repoman.freebsd.org> <20051116112419.GA1363@nagual.pp.ru> <20051116115900.GA7992@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline In-Reply-To: <20051116115900.GA7992@garage.freebsd.pl> User-Agent: Mutt/1.5.11 Cc: cvs-src@FreeBSD.ORG, src-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/usr.bin/pkill pkill.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Nov 2005 12:42:00 -0000 --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 16, 2005 at 12:59:00PM +0100, Pawel Jakub Dawidek wrote: > Let's say you call 'pkill sleep'. First it creates list of the matching > processes and when the list is done, it starts killing processes from > the list. When there is a race, so that process was inserted into the > list, but disappeared before killing, pkill(1) will quit with an error. > Which is bogus: there were 8 sleep processes, the 5th one disappeared, > so first 4 was killed, last 3 are still alive and pkill(1) returned an > error. Well, my initial statement will be modified slightly. 1) For SIGKILL, pkill should ignore disappeared precesses, as NetBSD does. 2) For any other signal, it should issue _warning_ and not error & stop. --=20 http://ache.pp.ru/ --EVF5PPMfhYS0aIcm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iQCVAwUBQ3spB+JgpPLZnQjrAQIzFQP/SWcehayxWztGkoJDnooNu4mPcVsVN3oV Q5lZzTFPTpeBULsUfTOZRKs+z5AReyXr4jh7qiBmVRCuMS4zyOSB1Q83FFbNSIRl gXRg4w/RelfWgSUFYU3Sx4Cg+u2Tnx3552qf+gsU9ks1gny5IeTDz+eWfBJYNKK8 O+tlHtClWcc= =BJhA -----END PGP SIGNATURE----- --EVF5PPMfhYS0aIcm--