MCPcopy Create free account
hub / github.com/apache/mesos / kill

Method kill

src/python/cli_new/lib/cli/tests/base.py:140–155  ·  view source on GitHub ↗

Kills a previously launched executable.

(self)

Source from the content-addressed store, hash-verified

138 self.proc = proc
139
140 def kill(self):
141 """
142 Kills a previously launched executable.
143 """
144 if self.proc is None:
145 return
146
147 try:
148 self.proc.stdin.close()
149 self.proc.stdout.close()
150 self.proc.kill()
151 self.proc.wait()
152 self.proc = None
153 except Exception as exception:
154 raise CLIException("Could not kill {name}: {error}"
155 .format(name=self.name, error=exception))
156
157
158class Master(Executable):

Callers 1

__del__Method · 0.95

Calls 4

CLIExceptionClass · 0.90
closeMethod · 0.45
killMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected