aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/nacl/_exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/nacl/_exit.c')
-rw-r--r--sysdeps/nacl/_exit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/nacl/_exit.c b/sysdeps/nacl/_exit.c
index 0ec902f9ea..6006e26e55 100644
--- a/sysdeps/nacl/_exit.c
+++ b/sysdeps/nacl/_exit.c
@@ -24,6 +24,9 @@ void
_exit (int status)
{
__nacl_irt_basic.exit (status);
+
+ /* That never returns unless something is severely and unrecoverably wrong.
+ If it ever does, try to make sure we crash. */
while (1)
__builtin_trap ();
}