Try to behave more like a unix term by sending sighup/sigcont on close and not sigkill. Might be a fix for #100

This commit is contained in:
Florian Mounier
2016-02-26 14:59:10 +01:00
parent 52714d81ab
commit ec25edb657

View File

@@ -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)