From 99f98ff1280f56092f25952ca8e24cff52c09aef Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Wed, 20 Mar 2019 21:26:33 -0400 Subject: Terminate pipe processes instead of sending them SIGINTs --- cmd2/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd2/utils.py') diff --git a/cmd2/utils.py b/cmd2/utils.py index 697cf6f8..7e36da92 100644 --- a/cmd2/utils.py +++ b/cmd2/utils.py @@ -404,10 +404,10 @@ class ProcReader(object): if self._proc.stderr is not None: self._err_thread.start() - def send_sigint(self) -> None: - """Send a SIGINT to the process""" + def terminate(self) -> None: + """Terminate the process""" import signal - self._proc.send_signal(signal.SIGINT) + self._proc.terminate() def wait(self) -> None: """Wait for the process to finish""" -- cgit v1.2.1