From owner-freebsd-threads@FreeBSD.ORG Fri Oct 22 02:30:31 2004 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C31B16A4CE for ; Fri, 22 Oct 2004 02:30:31 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B1B543D55 for ; Fri, 22 Oct 2004 02:30:31 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i9M2UVrg039282 for ; Fri, 22 Oct 2004 02:30:31 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i9M2UVxo039281; Fri, 22 Oct 2004 02:30:31 GMT (envelope-from gnats) Date: Fri, 22 Oct 2004 02:30:31 GMT Message-Id: <200410220230.i9M2UVxo039281@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: Mark Andrews Subject: Re: threads/72953: fork() unblocks blocked signals w/o PTHREAD_SCOPE_SYSTEM X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mark Andrews List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2004 02:30:31 -0000 The following reply was made to PR threads/72953; it has been noted by GNATS. From: Mark Andrews To: freebsd-gnats-submit@FreeBSD.org, marka@isc.org Cc: Subject: Re: threads/72953: fork() unblocks blocked signals w/o PTHREAD_SCOPE_SYSTEM Date: Fri, 22 Oct 2004 12:29:34 +1000 No. The restriction are for multi-threaded processes not single threaded processes. The test case is still single threaded when fork() is called. Also pthread_sigmask() / sigprocmask() are supposed to be identical in single threaded applications. Replacing pthread_sigmask() with sigprocmask() changes the resulting behaviour. http://www.opengroup.org/onlinepubs/007908799/xsh/sigprocmask.html http://www.opengroup.org/onlinepubs/007908799/xsh/fork.html