New submission from STINNER Victor <victor.stin...@haypocalc.com>:

pthread_kill() doesn't work on the main thread on FreeBSD6: sending a signal to 
the main thread does nothing. It works on the main thread just after the 
creation of the first thread.

PyThread__init_thread() has 3 implementations in Python/thread_pthread.h:
 - call pthread_init()
 - create a dummy thread (no-op) and join it
 - do nothing

pthread_init() doesn't exist on FreeBSD6. If the dummy thread implementation is 
used, pthread_kill() works directly on the main thread at startup.

----------
messages: 138875
nosy: haypo, neologix
priority: normal
severity: normal
status: open
title: pthread_kill() doesn't work on the main thread on FreeBSD6
versions: Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12392>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to