STINNER Victor <[email protected]> added the comment:
Ah, I found another caller of PyThread_acquire_lock_timed() with a timeout > 0
and intr_flag=0: _enter_buffered_busy() of Modules/_io/bufferedio.c:
/* When finalizing, we don't want a deadlock to happen with daemon
* threads abruptly shut down while they owned the lock.
* Therefore, only wait for a grace period (1 s.).
* Note that non-daemon threads have already exited here, so this
* shouldn't affect carefully written threaded I/O code.
*/
st = PyThread_acquire_lock_timed(self->lock, (PY_TIMEOUT_T)1e6, 0);
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue30768>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com