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

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

--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--



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