HomeFreeBSD

Use sigfastblock(2) for masking signals in libthr.

Description

Use sigfastblock(2) for masking signals in libthr.

Ensure proper handshake to transfer sigfastblock(2) blocking word
ownership from rtld to libthr.

Unfortunately sigfastblock(2) is not enough to stop intercepting
signals in libthr, because critical sections must ensure more than
just signal blocking.

Tested by: pho
Disscussed with: cem, emaste, jilles
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D12773

Details

Committed
kibFeb 9 2020, 12:27 PM
Differential Revision
D12773: Manage thread signal mask using a shared word, instead of syscall.
Parents
rS357697: Use sigfastblock(2) in rtld.
Branches
Unknown
Tags
Unknown