diff options
Diffstat (limited to 'cmd2/utils.py')
-rw-r--r-- | cmd2/utils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd2/utils.py b/cmd2/utils.py index a81a369f..e4da938d 100644 --- a/cmd2/utils.py +++ b/cmd2/utils.py @@ -404,6 +404,11 @@ 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""" + import signal + self._proc.send_signal(signal.SIGINT) + def terminate(self) -> None: """Terminate the process""" self._proc.terminate() |