mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-25 03:12:08 +01:00
18 lines
454 B
Diff
18 lines
454 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.
|
||
|
||
--- ./output.c.orig
|
||
+++ ./output.c
|
||
@@ -495,7 +495,7 @@
|
||
perror_with_name (_("write error: stdout"), "");
|
||
else
|
||
O (error, NILF, _("write error: stdout"));
|
||
- exit (MAKE_TROUBLE);
|
||
+ _exit (MAKE_TROUBLE);
|
||
}
|
||
}
|
||
|