Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4859ba0d
Commit
4859ba0d
authored
Sep 11, 2018
by
Max Bélanger
Committed by
Benjamin Peterson
Sep 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
closes bpo-31903: Release the GIL when calling into SystemConfiguration (GH-4178)
parent
ec014a10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
Misc/NEWS.d/next/macOS/2017-11-01-16-53-12.bpo-31903.K6jCVG.rst
...EWS.d/next/macOS/2017-11-01-16-53-12.bpo-31903.K6jCVG.rst
+2
-0
Modules/_scproxy.c
Modules/_scproxy.c
+6
-0
No files found.
Misc/NEWS.d/next/macOS/2017-11-01-16-53-12.bpo-31903.K6jCVG.rst
0 → 100644
View file @
4859ba0d
In :mod:`_scproxy`, drop the GIL when calling into ``SystemConfiguration`` to avoid
deadlocks.
Modules/_scproxy.c
View file @
4859ba0d
...
...
@@ -62,7 +62,10 @@ get_proxy_settings(PyObject* Py_UNUSED(mod), PyObject *Py_UNUSED(ignored))
PyObject
*
v
;
int
r
;
Py_BEGIN_ALLOW_THREADS
proxyDict
=
SCDynamicStoreCopyProxies
(
NULL
);
Py_END_ALLOW_THREADS
if
(
!
proxyDict
)
{
Py_RETURN_NONE
;
}
...
...
@@ -172,7 +175,10 @@ get_proxies(PyObject* Py_UNUSED(mod), PyObject *Py_UNUSED(ignored))
int
r
;
CFDictionaryRef
proxyDict
=
NULL
;
Py_BEGIN_ALLOW_THREADS
proxyDict
=
SCDynamicStoreCopyProxies
(
NULL
);
Py_END_ALLOW_THREADS
if
(
proxyDict
==
NULL
)
{
return
PyDict_New
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment