From owner-freebsd-threads@FreeBSD.ORG Fri Sep 17 00:44:42 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C86FE16A4CE; Fri, 17 Sep 2004 00:44:42 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5EAA43D1F; Fri, 17 Sep 2004 00:44:42 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 800367A3D2; Thu, 16 Sep 2004 17:44:42 -0700 (PDT) Message-ID: <414A337A.1040906@elischer.org> Date: Thu, 16 Sep 2004 17:44:42 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: Daniel Eischen References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: David Xu cc: freebsd-threads@freebsd.org Subject: Re: SIGILL @ pthread_create() after execv -FIXED- X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2004 00:44:42 -0000 Daniel Eischen wrote: >On Thu, 16 Sep 2004, Julian Elischer wrote: > >Regardless, it doesn't have the signal mask that the execve()'ing thread >has, and that is the key issue. The exec'd process needs to have the >signal mask of the issuing thread. > > > >>I'd still prefer to do things that work for libthr as well as libpthread. >> >> > >I don't see why this (whatever we do) has to be any different for libthr. > > > >For libpthread, we could put ourselves in a critical region (clear >the mailbox) -- that would stop upcalls. Does that also prevent >switching to different kernel threads? > yes I guess that would be enough. > > >