From owner-cvs-src@FreeBSD.ORG Mon Aug 20 18:49:27 2007 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACC6C16A476; Mon, 20 Aug 2007 18:49:27 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 88F1B13C461; Mon, 20 Aug 2007 18:49:27 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id D85D91A4D90; Mon, 20 Aug 2007 11:47:37 -0700 (PDT) Date: Mon, 20 Aug 2007 11:47:37 -0700 From: Alfred Perlstein To: Matthew Dillon Message-ID: <20070820184737.GJ87451@elvis.mu.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200708201842.l7KIgAbd040030@apollo.backplane.com> User-Agent: Mutt/1.4.2.3i X-Mailman-Approved-At: Mon, 20 Aug 2007 18:52:23 +0000 Cc: wine-freebsd@hub.org, Kris Moore , Scott Long , src-committers@freebsd.org, cvs-src@freebsd.org, 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-src@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 20 Aug 2007 18:49:27 -0000 * Matthew Dillon [070820 11:43] wrote: > We have a lwp_kill() system call that sends a signal to a thread within > a process. It turns out to be fairly necessary for any sort of heavily > 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. > > int lwp_kill(pid_t pid, lwpid_t tid, int sig); > > -Matt It's always bothered me that there wasn't a generation count included in the kill(2) interface. What do you think about that? It would be useful for pidfiles to ensure that a recycled pid doesn't get a program SIGwhatever'd. -- - Alfred Perlstein