linux-user: Properly handle sigset arg to pselect
commitcb22603444a262cd4d7d07c2ac1301a3df64769f
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 15 Mar 2022 08:43:06 +0000 (15 01:43 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 22 Mar 2022 12:06:21 +0000 (22 13:06 +0100)
treed6f5007d87cd0b417263e2db63a1c47eedec98cb
parent0a99f09383a0f08e5b7cd0c187166f7eff6014ad
linux-user: Properly handle sigset arg to pselect

Unblocked signals are never delivered, because we
didn't record the new mask for process_pending_signals.
Handle this with the same mechanism as sigsuspend.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/834
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20220315084308.433109-4-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c