Reported by Pádraig Brady.
* tests/test-pthread_sigmask2.c (main): Reestablish the signal handler
after SIGINT arrived.
* tests/test-sigdelay2.c (main): Likewise.
+2026-04-15 Bruno Haible <bruno@clisp.org>
+
+ pthread_sigmask tests: Fix test failure on Solaris, AIX (regr. today).
+ Reported by Pádraig Brady.
+ * tests/test-pthread_sigmask2.c (main): Reestablish the signal handler
+ after SIGINT arrived.
+ * tests/test-sigdelay2.c (main): Likewise.
+
2026-04-15 Paul Eggert <eggert@cs.ucla.edu>
doc: doc FTS_NOSTAT similarity to FTS_DEFER_STAT
before the call to pthread_sigmask() returns." */
ASSERT (sigint_occurred == 1);
+ /* On SystemV derivatives, we need to reestablish the signal handler. */
+#if defined __sun || defined _AIX /* Solaris, AIX */
+ signal (SIGINT, sigint_handler);
+#endif
+
/* Request a SIGINT signal from another thread. */
ASSERT (pthread_create (&killer_thread2, NULL, killer_thread2_func, NULL)
== 0);
/* The signal should have arrived now. */
ASSERT (sigint_occurred == 1);
+ /* On SystemV derivatives, we need to reestablish the signal handler. */
+#if defined __sun || defined _AIX /* Solaris, AIX */
+ signal (SIGINT, sigint_handler);
+#endif
+
/* Request a SIGINT signal from another thread. */
ASSERT (pthread_create (&killer_thread2, NULL, killer_thread2_func, NULL)
== 0);