aboutsummaryrefslogtreecommitdiff
path: root/linux-user/nios2
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-12-20 18:50:12 -0800
committerLaurent Vivier <laurent@vivier.eu>2022-01-06 11:40:52 +0100
commit155fff93f8e7720fa476f2f9a5c08bdad2076b8b (patch)
tree1b53fb48b21045d8f862860685d8b59e607ec047 /linux-user/nios2
parent7a83cbb0b0ef46e17f953bd972a1abb899d5d56e (diff)
downloadqemu-155fff93f8e7720fa476f2f9a5c08bdad2076b8b.zip
qemu-155fff93f8e7720fa476f2f9a5c08bdad2076b8b.tar.gz
qemu-155fff93f8e7720fa476f2f9a5c08bdad2076b8b.tar.bz2
linux-user/nios2: Use set_sigmask in do_rt_sigreturn
Using do_sigprocmask directly was incorrect, as it will leave the signal blocked by the outer layers of linux-user. Reviewed-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20211221025012.1057923-8-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/nios2')
-rw-r--r--linux-user/nios2/signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/nios2/signal.c b/linux-user/nios2/signal.c
index 80e3d42fc..517cd39 100644
--- a/linux-user/nios2/signal.c
+++ b/linux-user/nios2/signal.c
@@ -205,7 +205,7 @@ long do_rt_sigreturn(CPUNios2State *env)
}
target_to_host_sigset(&set, &frame->uc.tuc_sigmask);
- do_sigprocmask(SIG_SETMASK, &set, NULL);
+ set_sigmask(&set);
if (rt_restore_ucontext(env, &frame->uc, &rval)) {
goto badframe;