diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-03-20 21:26:33 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-03-20 21:26:33 -0400 |
commit | 99f98ff1280f56092f25952ca8e24cff52c09aef (patch) | |
tree | ce9d9adcd4ed245be7276f80487e6f613b9ad1b3 /cmd2/utils.py | |
parent | fb9fe3681be570455590e09cc8a4a9ff0e4821c2 (diff) | |
download | cmd2-git-99f98ff1280f56092f25952ca8e24cff52c09aef.tar.gz |
Terminate pipe processes instead of sending them SIGINTs
Diffstat (limited to 'cmd2/utils.py')
-rw-r--r-- | cmd2/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
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""" |