From f48cc50f7a1cbbdc6aa2bd04dd6b72b7439256cd Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 6 Apr 2026 11:12:46 -0700 Subject: [PATCH] =?UTF-8?q?maint:=20revert=20=E2=80=9Cavoid=20pthread=5Fsi?= =?UTF-8?q?gmask=20lock=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 | 2 -- 1 file changed, 2 deletions(-) diff --git a/configure.ac b/configure.ac index d7b7915a9..f60db9915 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],