From: Paul Eggert Date: Wed, 1 Apr 2026 21:43:40 +0000 (-0700) Subject: maint: avoid sigaction lock overhead X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3fb7dc8e2825fdef36d3ffbaa19eb354f75a8930;p=thirdparty%2Fcoreutils.git maint: avoid sigaction lock overhead * configure.ac (GNULIB_SIGACTION_SINGLE_THREAD): Define to avoid unnecessary locking in Gnulib sigaction. See: https://lists.gnu.org/r/bug-gnulib/2026-04/msg00008.html --- diff --git a/configure.ac b/configure.ac index 5e72ed153a..2741dc81b2 100644 --- a/configure.ac +++ b/configure.ac @@ -64,11 +64,13 @@ gl_INIT coreutils_MACROS # These are safe, since 'sort', coreutils's only multithreaded app, -# does not use the relevant modules. +# does not use the relevant modules, or calls their code from one thread. AC_DEFINE([GNULIB_EXCLUDE_SINGLE_THREAD], [1], [Define to 1 if apps call 'exclude' functions from a single thread.]) AC_DEFINE([GNULIB_REGEX_SINGLE_THREAD], [1], [Define to 1 if apps call 'regex' functions from a single thread.]) +AC_DEFINE([GNULIB_SIGACTION_SINGLE_THREAD], [1], + [Define to 1 if programs call 'sigaction' functions from a single thread.]) # Although 'sort' is multithreaded and can use these functions, # it uses them only from the main thread. AC_DEFINE([GNULIB_MBRTOWC_SINGLE_THREAD], [1],