Commit 337131b0 authored by Denis Bilenko's avatar Denis Bilenko

gevent.fork(): only call reinit() in the child greenlet

parent 0096c732
...@@ -160,6 +160,7 @@ if _original_fork is not None: ...@@ -160,6 +160,7 @@ if _original_fork is not None:
def fork(): def fork():
result = _original_fork() result = _original_fork()
if not result:
get_hub().loop.reinit() get_hub().loop.reinit()
return result return result
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment