Skip to content

Commit

Permalink
patcher: no os.register_at_fork on Windows (#654)
Browse files Browse the repository at this point in the history
#644

Eventlet 0.27.0 and 0.28.0 were incompatible with Windows (and other non-Unix) platforms
  • Loading branch information
temoto committed Oct 19, 2020
1 parent f2ebbb8 commit f227ef6
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit f227ef6

Please sign in to comment.