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
This commit is contained in:
Paul Eggert committed 2026-04-01 14:48:25 -07:00
1 parent 8a6cb56817
commit 3fb7dc8e28
1 file changed
+3 -1
+3 -1
View File
@@ -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],