From 2631aaccbc57388450403520e585d4440fec10fc Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 1 Jan 2026 12:07:54 +0000 Subject: Prepare for 2.9.8.1; signal handlers must save/restore errno --- COPYING | 2 +- INSTALL | 2 +- NEWS | 6 ++++++ doc/index.html | 6 +++--- doc/upgrade.html | 7 +++++++ package/info | 2 +- src/libexecline/el_forx_pidinfo.c | 4 ++++ 7 files changed, 23 insertions(+), 6 deletions(-) diff --git a/COPYING b/COPYING index 1a9e8a2..2b1da03 100644 --- a/COPYING +++ b/COPYING @@ -1,4 +1,4 @@ -Copyright (c) 2011-2025 Laurent Bercot +Copyright (c) 2011-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 570915a..b68c75d 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: nsss version 0.2.1.1 or later: https://skarnet.org/software/nsss/ This software will run on any operating system that implements diff --git a/NEWS b/NEWS index 7d84962..f799df9 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,11 @@ Changelog for execline. +In 2.9.8.1 +---------- + + - Bugfixes. + + In 2.9.8.0 ---------- diff --git a/doc/index.html b/doc/index.html index 3c73dd0..2028667 100644 --- a/doc/index.html +++ b/doc/index.html @@ -51,7 +51,7 @@ shell's syntax, and has no security issues.
  • 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.
  • @@ -77,8 +77,8 @@ want nsswitch-like functionality:

    Download

      -
    • The current released version of execline is 2.9.8.0. -You can access its checksum here.
    • +
    • The current released version of execline is 2.9.8.1. +You can access its checksum here.
    • Alternatively, you can checkout a copy of the execline git repository: diff --git a/doc/upgrade.html b/doc/upgrade.html index fbb7cc4..712f1f5 100644 --- a/doc/upgrade.html +++ b/doc/upgrade.html @@ -18,6 +18,13 @@

      What has changed in execline

      +

      in 2.9.8.1

      + +
        +
      • skalibs +dependency bumped to 2.14.5.1.
      • +
      +

      in 2.9.8.0

        diff --git a/package/info b/package/info index 1a386b2..9d4e42d 100644 --- a/package/info +++ b/package/info @@ -1,4 +1,4 @@ package=execline -version=2.9.8.0 +version=2.9.8.1 category=admin package_macro_name=EXECLINE diff --git a/src/libexecline/el_forx_pidinfo.c b/src/libexecline/el_forx_pidinfo.c index 61c5a26..8bd12bb 100644 --- a/src/libexecline/el_forx_pidinfo.c +++ b/src/libexecline/el_forx_pidinfo.c @@ -1,5 +1,7 @@ /* ISC license. */ +#include + #include #include @@ -15,11 +17,13 @@ int el_forx_isok (unsigned short const *tab, unsigned int n, unsigned short code void el_forx_sigchld_handler (int sig) { + int e = errno ; for (;;) { ssize_t r = wait_pids_nohang(el_forx_pidinfo->tab, el_forx_pidinfo->len, &el_forx_pidinfo->wstat) ; if (r <= 0) break ; el_forx_pidinfo->tab[r-1] = el_forx_pidinfo->tab[--el_forx_pidinfo->len] ; } + errno = e ; (void)sig ; } -- cgit v1.3.1