MCPcopy Create free account
hub / github.com/SHAILAB-IPEC/OpenFly-Platform / kill_failed_process

Method kill_failed_process

scripts/sim/ue_bridge.py:59–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 file.write(line)
58
59 def kill_failed_process(self):
60 result = subprocess.run(['pgrep', '-n', 'CrashReport'], stdout=subprocess.PIPE)
61 cr_pid = result.stdout.decode().strip()
62 if len(cr_pid) > 0:
63 subprocess.run(['kill', '-9', cr_pid])
64
65 result = subprocess.run(['pgrep', '-n', 'CitySample'], stdout=subprocess.PIPE)
66 cr_pid = result.stdout.decode().strip()
67 if len(cr_pid) > 0:
68 subprocess.run(['kill', '-9', cr_pid])
69
70 def _init_ue_sim(self):
71 env_dir = "envs/ue/" + self.env_name

Callers 1

__init__Method · 0.95

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected