def killProc(self):
global proc
try:
proc.terminate()
#os.killpg(proc.pid, signal.SIGKILL)
#print "after terminate: ", proc.pid
except:
pass
try:
proc.poll()
except:
pass
#os.killpg(proc.pid, signal.SIGTERM)
try:
del proc
except:
pass
if os.path.isfile('.target_fail'):
os.remove('.target_fail')
if os.path.isfile('.target_resp'):
os.remove('.target_resp')
评论列表
文章目录