mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-05-26 07:08:08 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user