summaryrefslogtreecommitdiffstats
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authoraurel322009-04-15 18:18:38 +0200
committeraurel322009-04-15 18:18:38 +0200
commit603e4fd7b1e034f79181a53df9719818f80ba364 (patch)
tree3e1f011d9dfed361b8df1c972963c52382beee31 /linux-user/syscall.c
parentlinux-user: prefer glibc over direct syscalls (diff)
downloadqemu-603e4fd7b1e034f79181a53df9719818f80ba364.tar.gz
qemu-603e4fd7b1e034f79181a53df9719818f80ba364.tar.xz
qemu-603e4fd7b1e034f79181a53df9719818f80ba364.zip
linux-user: proper exit code for uncaught signals
The proper exit code for dieing from an uncaught signal is -<signal>. The kernel doesn't allow exit() or _exit() to pass a negative value. To get the proper exit code we need to actually die from an uncaught signal. A default signal handler is installed, we send ourself a signal and we wait for it to arrive. Patch originates from Scratchbox Signed-off-by: Riku Voipio <riku.voipio@iki.fi> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7119 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/syscall.c')
0 files changed, 0 insertions, 0 deletions