summaryrefslogtreecommitdiff
path: root/sysdeps/nacl/_exit.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-04-07 16:16:04 -0700
committerRoland McGrath <roland@hack.frob.com>2015-04-07 16:16:04 -0700
commit49a3a2bc136d6ea9f3032d3396c72e980190b68a (patch)
treeb82ce57765baf6cd6527804967e69b38c5437285 /sysdeps/nacl/_exit.c
parentd3de4b133c3d2a1aef4c4a839648fcd2e6b52f69 (diff)
downloadglibc-roland/nacl-port/master.tar
glibc-roland/nacl-port/master.tar.gz
glibc-roland/nacl-port/master.tar.bz2
glibc-roland/nacl-port/master.zip
Random nits prepping for upstreaming.roland/nacl-port/master
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 ();
}