[issue25920] PyOS_AfterFork should reset socketmodule's lock

Ronald Oussoren report at bugs.python.org
Wed Dec 23 10:47:29 EST 2015


Ronald Oussoren added the comment:

#25924 is related to this, I filed this after reading the blog post. The lock might not be necessary on OSX, and possibly on the other systems as well.


Yury: resetting the lock in the child should be safe because after the fork the child only has a single thread that is returning from fork(2). The thread that acquired the lock does not exist in the child process.

----------
nosy: +ronaldoussoren

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25920>
_______________________________________


More information about the Python-bugs-list mailing list