diff options
author | Jason Tishler <jason@tishler.net> | 2003-07-22 15:20:49 (GMT) |
---|---|---|
committer | Jason Tishler <jason@tishler.net> | 2003-07-22 15:20:49 (GMT) |
commit | fac083d14a94137999559d895a4e6d1d9a2ea74c (patch) | |
tree | ae15f57f500e06cd70eaa2996a0eedec3d551d33 /Python/thread_pthread.h | |
parent | 5d6ceb4aaebc699f30bf26367a15255e4efc2bcd (diff) | |
download | cpython-fac083d14a94137999559d895a4e6d1d9a2ea74c.zip cpython-fac083d14a94137999559d895a4e6d1d9a2ea74c.tar.gz cpython-fac083d14a94137999559d895a4e6d1d9a2ea74c.tar.bz2 |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index 2e594fe..0f7ad20 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 |