diff Python/thread_pthread.h @ 29972:a408ac5527c3 legacy-trunk

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.
author Jason Tishler <jason@tishler.net>
date Tue, 22 Jul 2003 15:20:49 +0000
parents 40d287c3d906
children 4c8160088b34
line wrap: on
line diff
--- a/Python/thread_pthread.h	Tue Jul 22 14:37:42 2003 +0000
+++ b/Python/thread_pthread.h	Tue Jul 22 15:20:49 2003 +0000
@@ -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