/[qemu]
ViewVC logotype

Revision 7119


Jump to revision: Previous Next
Author: aurel32
Date: Wed Apr 15 16:18:38 2009 UTC (14 years, 7 months ago)
Changed paths: 1
Log Message:
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>

Changed paths:

Path Details
Directorytrunk/linux-user/signal.c modified , text changed

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.5