linux-user: Factor out uses of do_sigprocmask() from sigreturn code
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 27 May 2016 14:51:46 +0000 (15:51 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Tue, 7 Jun 2016 13:39:06 +0000 (16:39 +0300)
commit9eede5b69fbbed46f29c7c586cf9e067f56002a6
tree15862e63ffef405a437964aafb8d275c98972064
parent7ec87e06c7371c6c574de8ce2cb6553a26c3f3de
linux-user: Factor out uses of do_sigprocmask() from sigreturn code

All the architecture specific handlers for sigreturn include calls
to do_sigprocmask(SIGSETMASK, &set, NULL) to set the signal mask
from the uc_sigmask in the context being restored. Factor these
out into calls to a set_sigmask() function. The next patch will
want to add code which is not run when setting the signal mask
via do_sigreturn, and this change allows us to separate the two
cases.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/signal.c