]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: fix warning
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 27 Jan 2018 21:00:23 +0000 (22:00 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 27 Jan 2018 21:00:23 +0000 (22:00 +0100)
* sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
__task_terminate would ever return successfully.

ChangeLog
sysdeps/mach/hurd/dl-sysdep.c

index 9582d8cfed6ff122b8f24067be87bbcaf28970eb..5dd9e9fcb648d89f9d6fd53fa34c0be2a617c9c0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -27,6 +27,8 @@
        * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
        * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
        MACH_IPC_COMPAT.
+       * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
+       __task_terminate would ever return successfully.
 
 2018-01-27  James Clarke  <jrtc27@jrtc27.com>
 
index 2cd63bb83a494f651f606e611799b71ef433b8d2..ef96df054e754ecc62da63c617fd60980a7e2fef 100644 (file)
@@ -643,6 +643,9 @@ _exit (int status)
                    W_EXITCODE (status, 0), 0);
   while (__task_terminate (__mach_task_self ()))
     __mach_task_self_ = (__mach_task_self) ();
+
+  LOSE;
+  abort ();
 }
 /* We need this alias to satisfy references from libc_pic.a objects
    that were affected by the libc_hidden_proto declaration for _exit.  */