From owner-freebsd-current@FreeBSD.ORG Fri Oct 2 22:57:31 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C79A8106566B for ; Fri, 2 Oct 2009 22:57:31 +0000 (UTC) (envelope-from justin.teller@gmail.com) Received: from mail-qy0-f192.google.com (mail-qy0-f192.google.com [209.85.221.192]) by mx1.freebsd.org (Postfix) with ESMTP id 7F8208FC08 for ; Fri, 2 Oct 2009 22:57:31 +0000 (UTC) Received: by qyk30 with SMTP id 30so1740093qyk.7 for ; Fri, 02 Oct 2009 15:57:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=DQlfvgKarWNYt4Wl6YMaAS9PBIjGgVfClANDZid8l3Q=; b=yBBzFmgPEM5/RXc6+ZSsD8TmNAqJbTV0pWuNKjgQp5IpsMtoazLdhiS0IPF7OS1UAq biXKwD6NoKolRsHkReQFIx+HRn2OtJ+F/2enJiQtKGWn4sxU98R/trQj/wF4H+B9JSLp NHwlQhqnCjnyeT4q2tBcrr80wRsuB+CnUIDk0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=QrQ7bW1g9QzGLY2hledwiqgnTmfZNTmzU0rZtZrDR8Qf+gHFNbCCL7h42lsSrDogPv +SFGC1oKoA1w9IRFr3Q9btPOygyGNLCTMYQDLKfcwNwwv+EP6B2vZcmu6zFQDxluJzHW 0SroR3obwUlCK8LXIuNBsmAq0KV+12RbOwYS8= MIME-Version: 1.0 Received: by 10.224.29.74 with SMTP id p10mr1557343qac.290.1254524250572; Fri, 02 Oct 2009 15:57:30 -0700 (PDT) In-Reply-To: <20091002223147.GA26556@stack.nl> References: <20091001120730.GR3130@deviant.kiev.zoral.com.ua> <20091002201213.GA16633@stack.nl> <20091002223147.GA26556@stack.nl> Date: Fri, 2 Oct 2009 15:57:30 -0700 Message-ID: From: Justin Teller To: Jilles Tjoelker Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Kostik Belousov , freebsd-current@freebsd.org Subject: Re: Signals and an exiting thread X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Oct 2009 22:57:31 -0000 On Fri, Oct 2, 2009 at 3:31 PM, Jilles Tjoelker wrote: > On Fri, Oct 02, 2009 at 03:08:17PM -0700, Justin Teller wrote: >> However, we did a little more investigation, and the SIGKILL example >> Jilles posted happens as well. =A0We post a SIGKILL to a thread, and the >> thread goes away before it can kill the process. > > If you mean pthread_kill() with "posting to a thread", then that does > not seem a bug. I expect that pthread_kill() signals are lost when a > thread exits and that pthread_kill() to a thread that has already > terminated but has not yet been joined does nothing (possibly returning > an error). > > If a SIGKILL from kill() is lost, that is a bug. > > -- > Jilles Tjoelker > It is a SIGKILL from kill(). I'll look at code and see if I can come up with a good patch to fix it. -Justin