summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-libs/glibc/files/glibc-2.2.5-threadsig.diff')
-rw-r--r--sys-libs/glibc/files/glibc-2.2.5-threadsig.diff17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys-libs/glibc/files/glibc-2.2.5-threadsig.diff b/sys-libs/glibc/files/glibc-2.2.5-threadsig.diff
new file mode 100644
index 000000000000..4618113179ad
--- /dev/null
+++ b/sys-libs/glibc/files/glibc-2.2.5-threadsig.diff
@@ -0,0 +1,17 @@
+2002-02-17 Andreas Schwab <schwab@suse.de>
+
+* signals.c (sigwait): Check for old sighandler being SIG_ERR,
+ not NULL.
+
+--- linuxthreads/signals.c.~1.23.~ Mon Jan 14 16:16:45 2002
++++ linuxthreads/signals.c Sun Feb 17 00:51:41 2002
+@@ -198,7 +198,7 @@
+ s != __pthread_sig_cancel &&
+ s != __pthread_sig_debug) {
+ sigdelset(&mask, s);
+- if (sighandler[s].old == NULL ||
++ if (sighandler[s].old == (arch_sighandler_t) SIG_ERR ||
+ sighandler[s].old == (arch_sighandler_t) SIG_DFL ||
+ sighandler[s].old == (arch_sighandler_t) SIG_IGN) {
+ sa.sa_handler = pthread_null_sighandler;
+