STINNER Victor <victor.stin...@gmail.com> added the comment: I wrote PR 4103 to fix the pthread+semaphore implementation of PyThread_acquire_lock_timed().
Apply PR 4103, apply attached test.patch, recompile Python, and run interrupted_lock.py to test the PR. Result: haypo@selma$ ./python interrupted_lock.py acquire(timeout=1.0) took 1.0 seconds and got 911 signals ---------- Added file: https://bugs.python.org/file47234/test.patch _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue30768> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com