From df9d2603080dadfdd78026aebc0f96602f3e1297 Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Tue, 25 May 2010 12:23:13 -0700 Subject: [PATCH] Sending signals using more backwards-compatible methodology. --- tests/hub_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/hub_test.py b/tests/hub_test.py index 91fbbd8..1e5630d 100644 --- a/tests/hub_test.py +++ b/tests/hub_test.py @@ -171,8 +171,8 @@ except eventlet.Timeout: os.path.join(self.tempdir, filename)], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=new_env) eventlet.sleep(0.4) # wait for process to hit accept - p.send_signal(signal.SIGSTOP) # suspend and resume to generate EINTR - p.send_signal(signal.SIGCONT) + os.kill(p.pid, signal.SIGSTOP) # suspend and resume to generate EINTR + os.kill(p.pid, signal.SIGCONT) output, _ = p.communicate() lines = [l for l in output.split("\n") if l] self.assert_("exited correctly" in lines[-1])