From owner-freebsd-bugs Thu Jul 26 6: 4:48 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6A44C37B403; Thu, 26 Jul 2001 06:04:46 -0700 (PDT) (envelope-from deischen@FreeBSD.org) Received: (from deischen@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6QCwAs25459; Thu, 26 Jul 2001 05:58:10 -0700 (PDT) (envelope-from deischen) Date: Thu, 26 Jul 2001 05:58:10 -0700 (PDT) From: Message-Id: <200107261258.f6QCwAs25459@freefall.freebsd.org> To: jagarl@creator.club.ne.jp, deischen@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: bin/25132: sigprocmask problem with pthread Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: sigprocmask problem with pthread State-Changed-From-To: open->closed State-Changed-By: deischen State-Changed-When: Thu Jul 26 05:52:06 PDT 2001 State-Changed-Why: In a multithreaded process (our threads library), sigprocmask only changes the signal mask for the calling thread. It doesn't affect the signal mask of the _process_. The only way to block a signal in a multithreaded process is to use sigaction() with sa_handler set to SIG_IGN. Posix Std 1003.1, 1996 specifies that the behaviour of sigprocmask in a multi-threaded process is undefined. FreeBSD behaviour of sigprocmask in a multithreaded process should be similar to that of Solaris, which also makes sigprocmask behave the same as pthread_setmask. http://www.FreeBSD.org/cgi/query-pr.cgi?pr=25132 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message