Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jul 2001 05:58:10 -0700 (PDT)
From:      <deischen@FreeBSD.org>
To:        jagarl@creator.club.ne.jp, deischen@FreeBSD.org, freebsd-bugs@FreeBSD.org
Subject:   Re: bin/25132: sigprocmask problem with pthread
Message-ID:  <200107261258.f6QCwAs25459@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107261258.f6QCwAs25459>