MCPcopy Index your code
hub / github.com/secdev/scapy / stop

Method stop

scapy/pipetool.py:187–201  ·  view source on GitHub ↗
(self, _cmd="X")

Source from the content-addressed store, hash-verified

185 self.stop(_cmd="B")
186
187 def stop(self, _cmd="X"):
188 # type: (str) -> None
189 try:
190 with self.command_lock:
191 if self.thread is not None:
192 self._write_cmd(_cmd)
193 self.thread.join()
194 try:
195 self.thread_lock.release()
196 except Exception:
197 pass
198 else:
199 log_runtime.debug("Pipe engine thread not running")
200 except KeyboardInterrupt:
201 print("Interrupted by user.")
202
203 def add(self, *pipes):
204 # type: (*Pipe) -> None

Callers 1

wait_and_stopMethod · 0.95

Calls 4

_write_cmdMethod · 0.95
joinMethod · 0.80
releaseMethod · 0.80
debugMethod · 0.80

Tested by

no test coverage detected