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

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

parent 0096c732
......@@ -160,7 +160,8 @@ if _original_fork is not None:
def fork():
result = _original_fork()
get_hub().loop.reinit()
if not result:
get_hub().loop.reinit()
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