From fac083d14a94137999559d895a4e6d1d9a2ea74c Mon Sep 17 00:00:00 2001 From: Jason Tishler Date: Tue, 22 Jul 2003 15:20:49 +0000 Subject: 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. --- Python/thread_pthread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python') 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 -- cgit v1.2.1