From owner-cvs-all@FreeBSD.ORG Tue Aug 21 11:43:16 2007 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A9B716A41A; Tue, 21 Aug 2007 11:43:16 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id AC79613C4DE; Tue, 21 Aug 2007 11:43:15 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 5377145CD9; Tue, 21 Aug 2007 13:43:13 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id BD4474569A; Tue, 21 Aug 2007 13:43:04 +0200 (CEST) Date: Tue, 21 Aug 2007 13:42:07 +0200 From: Pawel Jakub Dawidek To: Alfred Perlstein Message-ID: <20070821114207.GC1132@garage.freebsd.pl> References: <200708182118.37998.tijl@ulyssis.org> <20070818204223.D1234@fledge.watson.org> <46C7A9A4.5090404@samsco.org> <20070819095302.D66918@fledge.watson.org> <222044094-1187603330-cardhu_decombobulator_blackberry.rim.net-1638751523-@bxe027.bisx.prod.on.blackberry> <46C9AE64.50705@samsco.org> <20070820182905.GH87451@elvis.mu.org> <200708201842.l7KIgAbd040030@apollo.backplane.com> <20070820184737.GJ87451@elvis.mu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HG+GLK89HZ1zG0kk" Content-Disposition: inline In-Reply-To: <20070820184737.GJ87451@elvis.mu.org> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 X-Mailman-Approved-At: Tue, 21 Aug 2007 11:45:22 +0000 Cc: wine-freebsd@hub.org, Kris Moore , Matthew Dillon , src-committers@freebsd.org, cvs-src@freebsd.org, Scott Long , cvs-all@freebsd.org, Daniel Eischen , Robert Watson , David Xu , Tijl Coosemans , Xin LI Subject: Re: cvs commit: src/sys/kern kern_thr.c syscalls.master src/sys/sys 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: Tue, 21 Aug 2007 11:43:16 -0000 --HG+GLK89HZ1zG0kk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 20, 2007 at 11:47:37AM -0700, Alfred Perlstein wrote: > * Matthew Dillon [070820 11:43] wrote: > > We have a lwp_kill() system call that sends a signal to a thread wi= thin > > a process. It turns out to be fairly necessary for any sort of hea= vily > > integrated multi-threaded work. In our case we need it to be able = to > > issue IPIs (aka SIGUSR1) to cpus within a SMP virtual kernel. > >=20 > > int lwp_kill(pid_t pid, lwpid_t tid, int sig); > >=20 > > -Matt >=20 > It's always bothered me that there wasn't a generation count > included in the kill(2) interface. >=20 > What do you think about that? >=20 > It would be useful for pidfiles to ensure that a recycled pid > doesn't get a program SIGwhatever'd. I worked on process generation number when I was working on pidfile(3) API. We had discussion about this and consensus was (AFAIR) that we don't need that, because for purpose of pidfile(3) we can use flock(2), which is enough (modulo file systems that doesn't support it). The probably incomplete and never tested patch you can find here: http://people.freebsd.org/~pjd/patches/procbid.patch (I called it process born ID.) --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --HG+GLK89HZ1zG0kk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFGys+PForvXbEpPzQRAht9AKCEmp66NkVksmlZI5AfidLufha5ZACggdmZ VpThYhiuJlnXyWeDPwDRihI= =teKn -----END PGP SIGNATURE----- --HG+GLK89HZ1zG0kk--