This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients neologix, pitrou, vstinner
Date 2017-10-24.10:28:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1508840883.72.0.213398074469.issue30768@psf.upfronthosting.co.za>
In-reply-to
Content
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);
History
Date User Action Args
2017-10-24 10:28:03vstinnersetrecipients: + vstinner, pitrou, neologix
2017-10-24 10:28:03vstinnersetmessageid: <1508840883.72.0.213398074469.issue30768@psf.upfronthosting.co.za>
2017-10-24 10:28:03vstinnerlinkissue30768 messages
2017-10-24 10:28:03vstinnercreate