summaryrefslogtreecommitdiff
path: root/Python/thread_pthread.h
diff options
context:
space:
mode:
authorJason Tishler <jason@tishler.net>2003-07-22 15:20:49 +0000
committerJason Tishler <jason@tishler.net>2003-07-22 15:20:49 +0000
commitfac083d14a94137999559d895a4e6d1d9a2ea74c (patch)
treeae15f57f500e06cd70eaa2996a0eedec3d551d33 /Python/thread_pthread.h
parent5d6ceb4aaebc699f30bf26367a15255e4efc2bcd (diff)
downloadcpython-git-fac083d14a94137999559d895a4e6d1d9a2ea74c.tar.gz
Patch 775605: Cygwin pthread_sigmask() workaround patch
Cygwin's pthread_sigmask() implementation appears to be buggy. This patch works around this problem by using sigprocmask() instead. This patch is implemented in a general way so it could be used by other platforms too. If this approach is deemed too risky, then I can work up a patch that just hacks Python/thread_pthread.h for Cygwin. Note that I tested this patch against 2.3c1 under Red Hat Linux 8.0 too. [snip] And finally, I need someone to regenerate pyconfig.h.in and configure with the same versions of the autotools that are normally used by Python. Neal kindly regenerated pyconfig.h.in and configure for me.
Diffstat (limited to 'Python/thread_pthread.h')
-rw-r--r--Python/thread_pthread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
index 2e594fe922..0f7ad20c2a 100644
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -116,7 +116,7 @@
* other UNIX International compliant systems that don't have the full
* pthread implementation.
*/
-#ifdef HAVE_PTHREAD_SIGMASK
+#if defined(HAVE_PTHREAD_SIGMASK) && !defined(HAVE_BROKEN_PTHREAD_SIGMASK)
# define SET_THREAD_SIGMASK pthread_sigmask
#else
# define SET_THREAD_SIGMASK sigprocmask