提交 d84d0681 编写于 作者: L liuyq-617

<test>fix psutil.procsee error

上级 23b69f62
...@@ -194,9 +194,13 @@ class TDSql: ...@@ -194,9 +194,13 @@ class TDSql:
pstate = 0 pstate = 0
pl = psutil.pids() pl = psutil.pids()
for pid in pl: for pid in pl:
if psutil.Process(pid).name == 'taosd': try:
pstate = 1 if psutil.Process(pid).name() == 'taosd':
break print('have already started')
pstate = 1
break
except psutil.NoSuchProcess:
pass
if pstate: if pstate:
tdLog.sleep(5) tdLog.sleep(5)
continue continue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册