From: Paul Eggert Date: Mon, 6 Apr 2026 18:12:46 +0000 (-0700) Subject: maint: revert “avoid pthread_sigmask lock” X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f48cc50f7a1cbbdc6aa2bd04dd6b72b7439256cd;p=thirdparty%2Fcoreutils.git maint: revert “avoid pthread_sigmask lock” * 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. --- diff --git a/configure.ac b/configure.ac index d7b7915a96..f60db9915b 100644 --- a/configure.ac +++ b/configure.ac @@ -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],