From owner-freebsd-threads@FreeBSD.ORG Fri Jun 11 08:28:58 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 EC9EF16A4CE; Fri, 11 Jun 2004 08:28:58 +0000 (GMT) Received: from mail.mcneil.com (rrcs-west-24-199-45-54.biz.rr.com [24.199.45.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDE7B43D54; Fri, 11 Jun 2004 08:28:58 +0000 (GMT) (envelope-from sean@mcneil.com) Received: from localhost (localhost.mcneil.com [127.0.0.1]) by mail.mcneil.com (Postfix) with ESMTP id 917A3FD087; Fri, 11 Jun 2004 01:28:40 -0700 (PDT) Received: from mail.mcneil.com ([127.0.0.1]) by localhost (server.mcneil.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28084-07; Fri, 11 Jun 2004 01:28:40 -0700 (PDT) Received: from [24.199.45.54] (mcneil.com [24.199.45.54]) by mail.mcneil.com (Postfix) with ESMTP id 3894DFD012; Fri, 11 Jun 2004 01:28:40 -0700 (PDT) From: Sean McNeil To: Daniel Eischen In-Reply-To: References: Content-Type: text/plain Message-Id: <1086942520.10026.41.camel@server.mcneil.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 11 Jun 2004 01:28:40 -0700 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at mcneil.com cc: David Xu cc: freebsd-threads@freebsd.org Subject: Re: signal handler priority issue 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, 11 Jun 2004 08:28:59 -0000 > No, the problem is because SIGUSR2 is _not_ blocked. I read > "masked off" as "blocked" (the desired behavior). If the > signal handler runs, that means that the signal is not blocked. > Your goal is to prevent the signal handler (for SIGUSR2) from > running until sigsuspend() is hit. Once sigsuspend() is hit, > then SIGUSR2 becomes unblocked, the signal handler is run, > and sigsuspend() returns. This is exactly what boehm-gc is doing. There must be something else lurking in here that I've missed. I have to keep looking at it.