mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-28 04:42:14 +01:00
19 lines
535 B
Diff
19 lines
535 B
Diff
Author: Timo Teräs <timo.teras@iki.fi>
|
||
|
||
POSIX says the behaviour is undefined if atexit callback calls
|
||
exit(). On glibc it works, but on musl it does not. Call instead
|
||
_exit() which is guaranteed to work.
|
||
|
||
--- make-4.0/output.c.orig 2013-10-06 02:12:24.000000000 +0300
|
||
+++ make-4.0/output.c 2013-10-18 15:43:23.502563018 +0300
|
||
@@ -515,7 +515,7 @@
|
||
error (NILF, _("write error: %s"), strerror (errno));
|
||
else
|
||
error (NILF, _("write error"));
|
||
- exit (EXIT_FAILURE);
|
||
+ _exit (EXIT_FAILURE);
|
||
}
|
||
}
|
||
|
||
|