def restart_process(self):
""""""
# type: ()->None
if not self.option is None:
command_plus_option = self.unix_command + " " + self.option
else:
command_plus_option = self.unix_command
self.process_analyzer.kill(sig=9)
self.process_analyzer = pexpect.spawnu(command_plus_option)
self.process_id = self.process_analyzer.pid
评论列表
文章目录