]> granicus.if.org Git - python/commit
Issue #12392: fix thread initialization on FreeBSD 6
authorVictor Stinner <victor.stinner@haypocalc.com>
Fri, 24 Jun 2011 18:52:27 +0000 (20:52 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Fri, 24 Jun 2011 18:52:27 +0000 (20:52 +0200)
commite71db4450cc3ede22dbfda7c7eb9149cf685650f
treed80ee8458e5681f6584f9f2ac7f479dbcf6ee1f9
parentfcb17e13da46c75f76766f8536d5823563d10f1c
Issue #12392: fix thread initialization on FreeBSD 6

On FreeBSD6, pthread_kill() doesn't work on the main thread before the creation
of the first thread. Create therefore a dummy thread (no-op) a startup to
initialize the pthread library.

Add also a test for this use case, test written by Charles-François Natali.
Lib/test/test_signal.py
Python/thread_pthread.h