[issue31818] [macOS] _scproxy.get_proxies() crash -- get_proxies() is not fork-safe?
STINNER Victor
report at bugs.python.org
Fri Oct 20 04:59:33 EDT 2017
STINNER Victor <victor.stinner at gmail.com> added the comment:
> 3) Find a workaround (such as calling the APIs used by _scproxy in a clean supprocess).
I dislike the idea of *always* spawning a child process, I prefer to leave it as it is, but add a recipe in the doc, or add a new helper function doing that.
Spawning a subprocess can have side effects as well, whereas the subprocess is only need if you call the function after forking which is not the most common pattern in Python.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31818>
_______________________________________
More information about the Python-bugs-list
mailing list