From c7c24531c294e2573e79380de8c2d21849cb39ad Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 12 Nov 2026 07:28:41 +0000 Subject: musl is doing something weird with dtors? In some cases s6-tai64nlocal segfaults on return after doing its job. The segfault happens in the libc. Since we don't use stdio anyway, replace 'return 0' with '_exit(0)' to bypass exit dtors. Sidestep the problem entirely. --- src/daemontools-extras/s6-tai64nlocal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/daemontools-extras/s6-tai64nlocal.c') diff --git a/src/daemontools-extras/s6-tai64nlocal.c b/src/daemontools-extras/s6-tai64nlocal.c index 80e9480..377d0f6 100644 --- a/src/daemontools-extras/s6-tai64nlocal.c +++ b/src/daemontools-extras/s6-tai64nlocal.c @@ -1,7 +1,9 @@ /* ISC license. */ #include +#include #include + #include #include #include @@ -61,5 +63,5 @@ int main (int argc, char const *const *argv) strerr_diefu1sys(111, "write to stdout") ; satmp.len = 0 ; } - return 0 ; + _exit(0) ; } -- cgit v1.3.1