From ec25edb6576427341d8ee16469ad9a57d7184f2b Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Fri, 26 Feb 2016 14:59:10 +0100 Subject: [PATCH] Try to behave more like a unix term by sending sighup/sigcont on close and not sigkill. Might be a fix for #100 --- butterfly/terminal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/butterfly/terminal.py b/butterfly/terminal.py index 97c5da9..e67bd25 100644 --- a/butterfly/terminal.py +++ b/butterfly/terminal.py @@ -328,7 +328,8 @@ class Terminal(object): log.debug('closing fd fail', exc_info=True) try: - os.kill(self.pid, signal.SIGKILL) + os.kill(self.pid, signal.SIGHUP) + os.kill(self.pid, signal.SIGCONT) os.waitpid(self.pid, 0) except Exception: log.debug('waitpid fail', exc_info=True)