linux-user: Use safe_syscall for futex syscall
commitd509eeb13c9c6fef4a29ca43c64f591d8c61d201
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 12 May 2016 17:47:52 +0000 (12 18:47 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Fri, 27 May 2016 11:50:39 +0000 (27 14:50 +0300)
treeede370d9f0092bc24baa338bc3cdaa47a8ce0d68
parent6df9d38d33be8397bda8838dea5a4a10d662749b
linux-user: Use safe_syscall for futex syscall

Use the safe_syscall wrapper for the futex syscall.

In particular, this fixes hangs when using programs that link
against the Boehm garbage collector, including the Mono runtime.

(We don't change the sys_futex() call in the implementation of
the exit syscall, because as the FIXME comment there notes
that should be handled by disabling signals, since we can't
easily back out if the futex were to return ERESTARTSYS.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c