From e697eeb3c5f098f9599d64b81cd4e69ab28658e8 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 1 Jan 2026 11:49:37 +0000 Subject: Signal handlers must save/restore errno --- AUTHORS | 1 + COPYING | 2 +- INSTALL | 2 +- doc/index.html | 2 +- doc/upgrade.html | 3 ++- package/info | 2 +- src/config/tipidee-config.c | 4 +++- 7 files changed, 10 insertions(+), 6 deletions(-) diff --git a/AUTHORS b/AUTHORS index 555ff86..eb3ce0a 100644 --- a/AUTHORS +++ b/AUTHORS @@ -9,3 +9,4 @@ Thanks to: Vincent de Ribou Alexis Mario Rugiero + Sertonix diff --git a/COPYING b/COPYING index 391ca13..edc15ee 100644 --- a/COPYING +++ b/COPYING @@ -1,4 +1,4 @@ -Copyright (c) 2023-2025 Laurent Bercot +Copyright (c) 2023-2026 Laurent Bercot Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above diff --git a/INSTALL b/INSTALL index 58b72c9..26f5e37 100644 --- a/INSTALL +++ b/INSTALL @@ -6,7 +6,7 @@ Build Instructions - A POSIX-compliant C development environment - GNU make version 3.81 or later - - skalibs version 2.14.5.0 or later: https://skarnet.org/software/skalibs/ + - skalibs version 2.14.5.1 or later: https://skarnet.org/software/skalibs/ - (optional but recommended): s6-networking version 2.7.2.0 or later: https://skarnet.org/software/s6-networking/ diff --git a/doc/index.html b/doc/index.html index bcda878..2508ebc 100644 --- a/doc/index.html +++ b/doc/index.html @@ -111,7 +111,7 @@ make it shorter. Just like the code.
  • A POSIX-compliant system with a standard C development environment
  • GNU make, version 3.81 or later
  • skalibs version -2.14.5.0 or later. It's a build-time requirement. It's also a run-time +2.14.5.1 or later. It's a build-time requirement. It's also a run-time requirement if you link against the shared version of the skalibs library.
  • Recommended at run-time: s6-networking version diff --git a/doc/upgrade.html b/doc/upgrade.html index e9d3f70..6e3676c 100644 --- a/doc/upgrade.html +++ b/doc/upgrade.html @@ -21,7 +21,8 @@

    in 0.0.7.1

      -
    • No functional changes.
    • +
    • skalibs +dependency bumped to 2.14.5.1

    in 0.0.7.0

    diff --git a/package/info b/package/info index bd008d1..806d858 100644 --- a/package/info +++ b/package/info @@ -1,4 +1,4 @@ package=tipidee -version=0.0.7.0 +version=0.0.7.1 category=web package_macro_name=TIPIDEE diff --git a/src/config/tipidee-config.c b/src/config/tipidee-config.c index 3a8d999..154575b 100644 --- a/src/config/tipidee-config.c +++ b/src/config/tipidee-config.c @@ -28,7 +28,7 @@ static pid_t pid = 0 ; static void sigchld_handler (int sig) { - (void)sig ; + int e = errno ; for (;;) { int wstat ; @@ -41,6 +41,8 @@ static void sigchld_handler (int sig) else _exit(wait_estatus(wstat)) ; } } + (void)sig ; + errno = e ; } static inline void conf_output (char const *ofile, unsigned int omode) -- cgit v1.3.1