MCPcopy
hub / github.com/saltstack/salt / close

Method close

tests/support/pytest/transport.py:304–316  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

302 super()._handle_signals(signum, sigframe)
303
304 def close(self):
305 if self._closing:
306 return
307 self._closing = True
308 if self.process_manager is None:
309 return
310 self.process_manager.terminate()
311 if hasattr(self.pub_server_channel, "close"):
312 self.pub_server_channel.close()
313 # Really terminate any process still left behind
314 for pid in self.process_manager._process_map:
315 terminate_process(pid=pid, kill_children=True, slow_stop=False)
316 self.process_manager = None
317
318 def publish(self, payload):
319 self.queue.put(payload)

Callers 13

_handle_signalsMethod · 0.95
__exit__Method · 0.95
_terminateMethod · 0.45
_terminateMethod · 0.45
run_run_plusMethod · 0.45
run_scriptMethod · 0.45
unredirectMethod · 0.45
wrapperFunction · 0.45
listeningMethod · 0.45
__exit__Method · 0.45
latest_installer_nameFunction · 0.45
generate_entropyMethod · 0.45

Calls 1

terminateMethod · 0.45

Tested by

no test coverage detected