From 6536cb2df83fea9dd91e1981f1bb2388f5fa568b Mon Sep 17 00:00:00 2001 From: clowwindy Date: Tue, 5 Mar 2013 00:17:37 +0800 Subject: [PATCH] fix test for python 2.5 --- test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index 35d3faf..1a5ca3b 100755 --- a/test.py +++ b/test.py @@ -1,6 +1,8 @@ #!/usr/bin/python # -*- coding: utf-8 -*- +import os +import signal import sys import select import struct @@ -117,7 +119,7 @@ try: finally: for p in [p1, p2]: try: - p.kill() + os.kill(p.pid, signal.SIGTERM) except OSError: pass