def _fun_thread_daemon_restart(self):
if self._close:
return
while True:
if self._is_api_socket_ok() is False:
process_new = psutil.Popen([self._exe_path, "type=python_auto"])
if process_new is not None:
print("FTApiDaemon new futnn process open ! pid={}".format(process_new.pid))
else:
print("FTApiDaemon open process fail ! ")
time.sleep(self._time_restart)
self._loop_kill_futunn()
评论列表
文章目录