diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2026-11-12 07:28:41 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2026-11-12 07:28:41 +0000 |
| commit | c7c24531c294e2573e79380de8c2d21849cb39ad (patch) | |
| tree | 01d54da0375ef6e3cb80c6fec8b292d339373519 /src/daemontools-extras/s6-tai64nlocal.c | |
| parent | f990816ac3423e999dfeefada6832ff2f3404800 (diff) | |
| download | s6-c7c24531c294e2573e79380de8c2d21849cb39ad.tar.gz | |
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.
Diffstat (limited to 'src/daemontools-extras/s6-tai64nlocal.c')
| -rw-r--r-- | src/daemontools-extras/s6-tai64nlocal.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <sys/types.h> +#include <unistd.h> #include <errno.h> + #include <skalibs/buffer.h> #include <skalibs/strerr.h> #include <skalibs/sgetopt.h> @@ -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) ; } |
