4 ms·
As a heads-up if you hadn't already seen it 3.7 added fork callbacks for stuff like this - https://docs.python.org/3/library/os.html#os.register_at_fork https:/
by wrmsr 8y ago
As a heads-up if you hadn't already seen it 3.7 added fork callbacks for stuff like this - https://docs.python.org/3/library/os.html#os.register_at_fork https://docs.python.org/3/library/os.html#os.register_at_for... - much nicer than patching-and-praying.
- fake-name 8y agoYeah, saw that while looking about for atfork stuff. Ironically, I was involved in https://bugs.python.org/issue6721 https://bugs.python.org/issue6721 which is one of the major bugs leading to the acceptance of https://bugs.python.org/issue16500 https://bugs.python.org/issue16500, which is the patch including atfork().