hurd: fix warning
* sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if __task_terminate would ever return successfully.
This commit is contained in:
parent
f4d3cee3a0
commit
06fac9f503
@ -27,6 +27,8 @@
|
|||||||
* mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
|
* mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
|
||||||
* sysdeps/mach/hurd/fork.c (__fork): Drop special casing
|
* sysdeps/mach/hurd/fork.c (__fork): Drop special casing
|
||||||
MACH_IPC_COMPAT.
|
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>
|
2018-01-27 James Clarke <jrtc27@jrtc27.com>
|
||||||
|
|
||||||
|
@ -643,6 +643,9 @@ _exit (int status)
|
|||||||
W_EXITCODE (status, 0), 0);
|
W_EXITCODE (status, 0), 0);
|
||||||
while (__task_terminate (__mach_task_self ()))
|
while (__task_terminate (__mach_task_self ()))
|
||||||
__mach_task_self_ = (__mach_task_self) ();
|
__mach_task_self_ = (__mach_task_self) ();
|
||||||
|
|
||||||
|
LOSE;
|
||||||
|
abort ();
|
||||||
}
|
}
|
||||||
/* We need this alias to satisfy references from libc_pic.a objects
|
/* We need this alias to satisfy references from libc_pic.a objects
|
||||||
that were affected by the libc_hidden_proto declaration for _exit. */
|
that were affected by the libc_hidden_proto declaration for _exit. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user