]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: revert “avoid pthread_sigmask lock”
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 6 Apr 2026 18:12:46 +0000 (11:12 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 6 Apr 2026 18:15:10 +0000 (11:15 -0700)
* configure.ac (GNULIB_SIGACTION_SINGLE_THREAD): Remove.
This never worked (it was a misspelling) and the properly-spelled
identifier (whose spelling has since been renamed) is useful
mostly for programs like gzip that do not need Gnulib’s ‘lock’ module.
For coreutils, which needs ‘lock’ for other reasons, it’s overkill.

maint: avoid pthread_sigmask lock overhead
This matters only for MS-Windows.
* configure.ac (GNULIB_PTHREAD_SIGMASK_SINGLE_THREAD):
Define this instead of defining GNULIB_SIGACTION_SINGLE_THREAD.
The latter was a typo, and Gnulib has evolved anyway.

configure.ac

index d7b7915a969697a4e776efe2361dfe5c7c98b4d1..f60db9915b6d976ad77beb672d9b28ce6489224c 100644 (file)
@@ -69,8 +69,6 @@ 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],