This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[hurd,commited 4/7] hurd: fix warning
- From: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- To: libc-alpha at sourceware dot org
- Cc: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- Date: Sat, 27 Jan 2018 23:50:59 +0100
- Subject: [hurd,commited 4/7] hurd: fix warning
- Authentication-results: sourceware.org; auth=none
- References: <20180127225102.11373-1-samuel.thibault@ens-lyon.org>
* sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
__task_terminate would ever return successfully.
---
ChangeLog | 2 ++
sysdeps/mach/hurd/dl-sysdep.c | 3 +++
2 files changed, 5 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 9582d8cfed..5dd9e9fcb6 100644
--- 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>
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index 2cd63bb83a..ef96df054e 100644
--- a/sysdeps/mach/hurd/dl-sysdep.c
+++ b/sysdeps/mach/hurd/dl-sysdep.c
@@ -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. */
--
2.15.1