MCPcopy Index your code
hub / github.com/bugy/script-server / KillChildren

Class KillChildren

src/execution/process_base.py:78–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 os.killpg(group_id, signal.SIGTERM)
77
78 class KillChildren(object):
79 def finished(self):
80 try:
81 os.killpg(group_id, signal.SIGKILL)
82 except ProcessLookupError:
83 # probably there are no children left
84 pass
85
86 self.add_finish_listener(KillChildren())
87

Callers 1

stopMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected