MCPcopy Create free account
hub / github.com/ElementsProject/lightning / stop

Method stop

contrib/pyln-testing/pyln/testing/utils.py:244–254  ·  view source on GitHub ↗
(self, timeout=10)

Source from the content-addressed store, hash-verified

242 env=self.env)
243
244 def stop(self, timeout=10):
245 self.proc.terminate()
246
247 # Now give it some time to react to the signal
248 rc = self.proc.wait(timeout)
249
250 if rc is None:
251 self.proc.kill()
252
253 self.proc.wait()
254 return self.proc.returncode
255
256 def kill(self):
257 """Kill process without giving it warning."""

Callers

nothing calls this directly

Calls 2

killMethod · 0.80
waitMethod · 0.45

Tested by

no test coverage detected