➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 emptysquare
收信人 emptysquare
日期 2015-12-21.23:19:32
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1450739972.22.0.163393011494.issue25920@psf.upfronthosting.co.za>
In-reply-to
内容
On some platforms there's an exclusive lock in socketmodule, used for getaddrinfo, gethostbyname, gethostbyaddr. A thread can hold this lock while another forks, leaving it locked forever in the child process. Calls to these functions in the child process will hang.

(I wrote some more details here: https://emptysqua.re/blog/getaddrinfo-deadlock/ )

I propose that this is a bug, and that it can be fixed in PyOS_AfterFork, where a few similar locks are already reset.
历史
日期 用户 动作 参数
2015-12-21 23:19:32emptysquare修改recipients: + emptysquare
2015-12-21 23:19:32emptysquare修改messageid: <1450739972.22.0.163393011494.issue25920@psf.upfronthosting.co.za>
2015-12-21 23:19:32emptysquare链接issue25920 messages
2015-12-21 23:19:32emptysquare创建