diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-05-27 15:51:57 +0100 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2016-06-07 16:39:08 +0300 |
commit | bef653d92e4e1c47c60f5c020ff6de69dba83478 (patch) | |
tree | cbdcf2af2e17339f44c303f7cb91541c152b8ca5 /version.rc | |
parent | a0995886e23323258d0612c71f8b0416a02806f2 (diff) | |
download | qemu-bef653d92e4e1c47c60f5c020ff6de69dba83478.zip qemu-bef653d92e4e1c47c60f5c020ff6de69dba83478.tar.gz qemu-bef653d92e4e1c47c60f5c020ff6de69dba83478.tar.bz2 |
linux-user: Use safe_syscall for kill, tkill and tgkill syscalls
Use the safe_syscall wrapper for the kill, tkill and tgkill syscalls.
Without this, if a thread sent a SIGKILL to itself it could kill the
thread before we had a chance to process a signal that arrived just
before the SIGKILL, and that signal would get lost.
We drop all the ifdeffery for tkill and tgkill, because every guest
architecture we support implements them, and they've been in Linux
since 2003 so we can assume the host headers define the __NR_tkill
and __NR_tgkill constants.
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>
Diffstat (limited to 'version.rc')
0 files changed, 0 insertions, 0 deletions