[Python-checkins] python/dist/src/Python thread_pthread.h,2.46,2.47

jlt63@users.sourceforge.net jlt63@users.sourceforge.net
Tue, 22 Jul 2003 08:20:52 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv8490/Python

Modified Files:
	thread_pthread.h 
Log Message:
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.


Index: thread_pthread.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/thread_pthread.h,v
retrieving revision 2.46
retrieving revision 2.47
diff -C2 -d -r2.46 -r2.47
*** thread_pthread.h	19 Apr 2003 07:44:52 -0000	2.46
--- thread_pthread.h	22 Jul 2003 15:20:49 -0000	2.47
***************
*** 117,121 ****
   * pthread implementation.
   */
! #ifdef HAVE_PTHREAD_SIGMASK
  #  define SET_THREAD_SIGMASK pthread_sigmask
  #else
--- 117,121 ----
   * pthread implementation.
   */
! #if defined(HAVE_PTHREAD_SIGMASK) && !defined(HAVE_BROKEN_PTHREAD_SIGMASK)
  #  define SET_THREAD_SIGMASK pthread_sigmask
  #else