OSDN Git Service

linux-user: fix ssetmask() system call
authorMiloš Stojanović <Milos.Stojanovic@rt-rk.com>
Mon, 15 May 2017 14:59:43 +0000 (16:59 +0200)
committerRiku Voipio <riku.voipio@linaro.org>
Mon, 29 May 2017 11:56:08 +0000 (14:56 +0300)
commita8617d8c2fa888a37ecb7db6635fb44964505277
tree424970cc793b9b4ebf0595c2b06e81d98ab9a44d
parent5162264e438cf5efcb101bc8030e5f76feb58635
linux-user: fix ssetmask() system call

Fix the ssetmask() system call by removing the invocation of sigorset().

The ssetmask() system call should replace the old signal mask
with the new and return the old mask. It shouldn't combine
the old and the new mask with sigorset(). Fetching the old
mask for sigorset() is also no longer needed.

The problem was detected after running LTP test group syscalls
for the MIPS EL 32 R2 architecture where the test ssetmask01 failed
with exit code 1. The test passes now that the ssetmask() system call
is fixed.

Signed-off-by: Miloš Stojanović <Milos.Stojanovic@rt-rk.com>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c