Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patcher: no os.register_at_fork on Windows #654

Merged
merged 1 commit into from Oct 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions eventlet/patcher.py
Expand Up @@ -313,9 +313,9 @@ def monkey_patch(**on):
if hasattr(orig_mod, attr_name):
delattr(orig_mod, attr_name)

if name == 'threading' and sys.version_info >= (3, 7):
_os = original('os')
if name == 'threading' and hasattr(_os, 'register_at_fork'):
def fix_threading_active(
_os=original('os'),
_global_dict=original('threading').current_thread.__globals__,
_patched=orig_mod
):
Expand Down