MCPcopy
hub / github.com/locustio/locust / terminate

Method terminate

locust/test/subprocess_utils.py:175–183  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

173 raise Exception("Cannot send input to proccess without pty.")
174
175 def terminate(self):
176 if IS_WINDOWS:
177 # Signals are hard on Windows
178 sig = signal.SIGTERM
179 else:
180 sig = signal.SIGINT
181
182 self.proc.send_signal(sig)
183 self._terminated = True

Calls

no outgoing calls