From: Zack Cerza Date: Wed, 25 Jan 2017 21:08:35 +0000 (-0700) Subject: Tell gevent not to patch os.waitpid() X-Git-Tag: 1.1.0~470^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a324f457ad3daee4088ceab2c9e08452d30a13cc;p=teuthology.git Tell gevent not to patch os.waitpid() Signed-off-by: Zack Cerza --- diff --git a/teuthology/__init__.py b/teuthology/__init__.py index b240186b6..b7347612b 100644 --- a/teuthology/__init__.py +++ b/teuthology/__init__.py @@ -1,3 +1,9 @@ +import os +# Tell gevent not to patch os.waitpid() since it is susceptible to race +# conditions. See: +# http://www.gevent.org/gevent.monkey.html#gevent.monkey.patch_os +os.environ['GEVENT_NOWAITPID'] = 'true' + # Use manhole to give us a way to debug hung processes # https://pypi.python.org/pypi/manhole import manhole @@ -21,7 +27,6 @@ from .orchestra import monkey monkey.patch_all() import logging -import os import subprocess __version__ = '1.0.0'