Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Nov 2005 15:12:23 +0100
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Andrey Chernov <ache@freebsd.org>, src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/usr.bin/pkill pkill.c
Message-ID:  <20051116141223.GB7992@garage.freebsd.pl>
In-Reply-To: <20051116124143.GA2104@nagual.pp.ru>
References:  <200511161103.jAGB30d4062758@repoman.freebsd.org> <20051116112419.GA1363@nagual.pp.ru> <20051116115900.GA7992@garage.freebsd.pl> <20051116124143.GA2104@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

--mojUlQ0s9EVzWg2t
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Nov 16, 2005 at 03:41:43PM +0300, Andrey Chernov wrote:
+> 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.
+>=20
+> Well, my initial statement will be modified slightly.
+>=20
+> 1) For SIGKILL, pkill should ignore disappeared precesses, as NetBSD doe=
s.
+> 2) For any other signal, it should issue _warning_ and not error & stop.

I can't agree here. You know, that running the same pkill command a bit
later (few miliseconds?) will not give you the warning?

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

--mojUlQ0s9EVzWg2t
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDez5HForvXbEpPzQRAsdoAKCodHpxN50hwjtAVFH6Ba/yguGbgQCfc/vx
/RcTIWe0S4uLcqTEsUMEB84=
=QD3y
-----END PGP SIGNATURE-----

--mojUlQ0s9EVzWg2t--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051116141223.GB7992>