bpo-31903: Release the GIL when calling into SystemConfiguration#4178
Conversation
Make sure we release the GIL when calling `SCDynamicStoreCopyProxies` to avoid potential deadlocking if other Python threads also call into `NSUserDefaults`.
ronaldoussoren
left a comment
There was a problem hiding this comment.
Patch looks good.
|
@ronaldoussoren any updates on whether this can be merged? |
|
Thanks @maxbelanger for the PR, and @benjaminp for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6. |
|
Thanks @maxbelanger for the PR, and @benjaminp for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7. |
|
Thanks @maxbelanger for the PR, and @benjaminp for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
…on (pythonGH-4178) (cherry picked from commit 4859ba0) Co-authored-by: Max Bélanger <aeromax@gmail.com>
|
GH-9215 is a backport of this pull request to the 3.6 branch. |
|
Sorry, @maxbelanger and @benjaminp, I could not cleanly backport this to |
…on (pythonGH-4178) (cherry picked from commit 4859ba0) Co-authored-by: Max Bélanger <aeromax@gmail.com>
|
GH-9216 is a backport of this pull request to the 3.7 branch. |
|
Thanks @maxbelanger for the PR, and @benjaminp for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
Per details in issue tracker, make sure we release the GIL when calling
SCDynamicStoreCopyProxiesto avoid potential deadlocking if other Python threads also call intoNSUserDefaults.https://bugs.python.org/issue31903