fix bug in dladdr that prevented resolving addresses in the PLT
[oweals/musl.git] / src / exit / _Exit.c
index c00a2ffbc798b2a5243c017d9b5292fb2afcc2bb..7a6115c7bbc71265929b20c8817d8476ee184b39 100644 (file)
@@ -4,5 +4,5 @@
 _Noreturn void _Exit(int ec)
 {
        __syscall(SYS_exit_group, ec);
-       __syscall(SYS_exit, ec);
+       for (;;) __syscall(SYS_exit, ec);
 }