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

Function kill_env_process

train/eval.py:30–34  ·  view source on GitHub ↗
(keyword)

Source from the content-addressed store, hash-verified

28
29
30def kill_env_process(keyword):
31 result = subprocess.run(['pgrep', '-n', keyword], stdout=subprocess.PIPE)
32 cr_pid = result.stdout.decode().strip()
33 if len(cr_pid) > 0:
34 subprocess.run(['kill', '-9', cr_pid])
35
36class AirsimBridge:
37 def __init__(self, env_name):

Callers 1

mainFunction · 0.85

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected