haiku/headers
Jérôme Duval 837f4f48db kernel/thread: restore signal mask just before returning to userland
* otherwise the signal to be handled might be blocked. fixes #15193
* also remove automatic syscall restart on _kern_select, to match Linux and
BSDs behavior: this fixes parallel build with newer gnu make, which happens
to use pselect.
* also remove automatic syscall restart on _kern_poll.

from https://man7.org/linux/man-pages/man7/signal.7.html
"The following interfaces are never restarted after being
       interrupted by a signal handler, regardless of the use of
       SA_RESTART; they always fail with the error EINTR when
       interrupted by a signal handler: ...
	select(2), and pselect(2)."
from https://notes.shichao.io/unp/ch6/
"Berkeley-derived kernels never automatically restart select."

Change-Id: I7f86d221eae1ad93d8a308a75581d2c30a369c9e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3627
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2021-01-15 17:41:33 +00:00
..
build Fix definition of PAGESIZE and B_PAGE_SIZE 2021-01-08 12:02:16 +00:00
compatibility features.h: undef before define 2021-01-07 09:14:57 +00:00
config ARM64: Initial changes so we can compile GCC toolchain 2019-08-30 19:05:16 +00:00
cpp
glibc
libs agg: fix build. 2020-01-22 19:25:16 +01:00
os Package Kit: re-use downloads from unfinished transactions 2021-01-09 15:20:09 +00:00
posix Fix definition of PAGESIZE and B_PAGE_SIZE 2021-01-08 12:02:16 +00:00
private kernel/thread: restore signal mask just before returning to userland 2021-01-15 17:41:33 +00:00
tools