signal: added a wrapper for sigprocmask function
commit1c275925bfbbc2de84a8f0e09d1dd70bbefb6da3
authorAlex Barcelo <abarcelo@ac.upc.edu>
Fri, 14 Mar 2014 14:36:55 +0000 (14 14:36 +0000)
committerRiku Voipio <riku.voipio@linaro.org>
Mon, 17 Mar 2014 09:44:32 +0000 (17 11:44 +0200)
tree8b95260e92c5032bb591afd062dea2360edeaeca
parent6b1275ff15b205a7738aa8ba96fe355f097b5879
signal: added a wrapper for sigprocmask function

Create a wrapper for signal mask changes initiated by the guest;
(this includes syscalls and also the sigreturns from signal.c)
this will give us a place to put code which prevents the guest
from changing the handling of signals used by QEMU itself
internally.

The wrapper is called from all the guest-initiated sigprocmask, but
is not called from internal qemu sigprocmask calls.

Signed-off-by: Alex Barcelo <abarcelo@ac.upc.edu>
[PMM: Added calls to wrapper for sigprocmask uses in signal.c
when setting the signal mask on entry and exit from signal
handlers, since these also are guest-provided signal masks.]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/qemu.h
linux-user/signal.c
linux-user/syscall.c