X Tutup
Skip to content

[2.7] bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (GH-2403)#2420

Merged
pitrou merged 2 commits intopython:2.7from
pitrou:backport-f84ac42-2.7
Jun 26, 2017
Merged

[2.7] bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (GH-2403)#2420
pitrou merged 2 commits intopython:2.7from
pitrou:backport-f84ac42-2.7

Conversation

@pitrou
Copy link
Copy Markdown
Member

@pitrou pitrou commented Jun 26, 2017

  • bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to lock

This is especially important if PyThread_acquire_lock() is called reentrantly
(for example from a signal handler).

(cherry picked from commit f84ac42)

… not to (pythonGH-2403)

* bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to lock

This is especially important if PyThread_acquire_lock() is called reentrantly
(for example from a signal handler).

* Update 2017-06-26-14-29-50.bpo-30765.Q5iBmf.rst

* Avoid core logic when taking the mutex failed.
(cherry picked from commit f84ac42)
@pitrou pitrou merged commit 8284883 into python:2.7 Jun 26, 2017
@pitrou pitrou deleted the backport-f84ac42-2.7 branch June 26, 2017 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup