[Python-checkins] cpython: Issue #12469: partial revert of 024827a9db64, freebsd6 thread initialization

victor.stinner python-checkins at python.org
Mon Jul 4 22:55:47 CEST 2011


http://hg.python.org/cpython/rev/34061f0d35ba
changeset:   71213:34061f0d35ba
parent:      71211:f9d30fac3da0
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Mon Jul 04 22:53:49 2011 +0200
summary:
  Issue #12469: partial revert of 024827a9db64, freebsd6 thread initialization

 * Don't create a thread at startup anymore to initialize the pthread library:
   it changes the behaviour of many functions related to signal handling like
   sigwait()
 * Reenable test_sigtimedwait_poll() on FreeBSD 6

files:
  Lib/test/test_signal.py |  3 ---
  Python/thread_pthread.h |  5 +----
  2 files changed, 1 insertions(+), 7 deletions(-)


diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -670,9 +670,6 @@
 
     @unittest.skipUnless(hasattr(signal, 'sigtimedwait'),
                          'need signal.sigtimedwait()')
-    # issue #12303: sigtimedwait() takes 30 seconds on FreeBSD 6 (kernel bug)
-    @unittest.skipIf(sys.platform =='freebsd6',
-        "sigtimedwait() with a null timeout doens't work on FreeBSD 6")
     def test_sigtimedwait_poll(self):
         # check that polling with sigtimedwait works
         self.wait_helper(signal.SIGALRM, '''
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -144,10 +144,7 @@
  * Initialization.
  */
 
-/* On FreeBSD6, pthread_kill() doesn't work on the main thread before
-   the creation of the first thread */
-#if defined(_HAVE_BSDI) \
-    || (defined(__FreeBSD__) && __FreeBSD_version < 700000)
+#if defined(_HAVE_BSDI)
 static
 void _noop(void)
 {

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list