[issue12392] pthread_kill() doesn't work on the main thread on FreeBSD6

2011-11-08 Thread Florent Xicluna
Changes by Florent Xicluna : -- Removed message: http://bugs.python.org/msg147102 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue12392] pthread_kill() doesn't work on the main thread on FreeBSD6

2011-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8ea34a74f118 by Éric Araujo in branch '2.7': Add missing versionadded (fixes #12392) http://hg.python.org/cpython/rev/8ea34a74f118 -- ___ Python tracker _

[issue12392] pthread_kill() doesn't work on the main thread on FreeBSD6

2011-07-04 Thread STINNER Victor
STINNER Victor added the comment: As discussed in issue #12469, the commit 024827a9db64 makes things worse: it changes the behaviour of many functions related to signal handling (e.g. sigwait()) just to be able to use pthread_kill() on the main thread. I reverted the patch: commit 34061f0d35b

[issue12392] pthread_kill() doesn't work on the main thread on FreeBSD6

2011-07-01 Thread STINNER Victor
STINNER Victor added the comment: This issue introduced regressions in the faulthandler module: see issue #12469. -- ___ Python tracker ___ _

[issue12392] pthread_kill() doesn't work on the main thread on FreeBSD6

2011-06-26 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue12392] pthread_kill() doesn't work on the main thread on FreeBSD6

2011-06-24 Thread STINNER Victor
STINNER Victor added the comment: > I've attached a patch spawning a new interpreter to test that. Thanks, I commited your test at the same time of the fix. -- ___ Python tracker _

[issue12392] pthread_kill() doesn't work on the main thread on FreeBSD6

2011-06-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 024827a9db64 by Victor Stinner in branch 'default': Issue #12392: fix thread initialization on FreeBSD 6 http://hg.python.org/cpython/rev/024827a9db64 -- nosy: +python-dev ___ Python tracker

[issue12392] pthread_kill() doesn't work on the main thread on FreeBSD6

2011-06-24 Thread Charles-François Natali
Charles-François Natali added the comment: > Attached patch implements the suggested fix. The patch looks good to me. > It would be possible to fix the test to fail instead of blocking I think this issue deserves a specific test, since: - test_pending tests something completely different - a

[issue12392] pthread_kill() doesn't work on the main thread on FreeBSD6

2011-06-23 Thread STINNER Victor
STINNER Victor added the comment: FreeBSD 7 is not affected by this issue. To test this issue, call signal.pthread_kill(threading.get_ident(), signal.SIGINT) in an interpreter: it should raise a KeyboardInterrupt. On FreeBSD6, it does nothing. Or run ./python -m test -v test_signal: test_pen

[issue12392] pthread_kill() doesn't work on the main thread on FreeBSD6

2011-06-23 Thread STINNER Victor
STINNER Victor added the comment: Attached patch implements the suggested fix. -- keywords: +patch Added file: http://bugs.python.org/file22431/thread_init_freebsd6.patch ___ Python tracker ___

[issue12392] pthread_kill() doesn't work on the main thread on FreeBSD6

2011-06-23 Thread STINNER Victor
New submission from STINNER Victor : 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: