Enhance earlier os.kill() commit by ignoring all failures from that

This commit is contained in:
Chris Jones 2010-01-25 13:00:29 +00:00
parent 23ccad813d
commit 9bb77729b4
1 changed files with 6 additions and 1 deletions

View File

@ -165,7 +165,12 @@ class Terminal(gtk.VBox):
"""Close ourselves"""
dbg('Terminal::close: emitting close-term')
self.emit('close-term')
os.kill(self.pid, signal.SIGHUP)
try:
os.kill(self.pid, signal.SIGHUP)
except:
# We really don't want to care if this failed. Deep OS voodoo is
# not what we should be doing.
pass
def create_terminalbox(self):
"""Create a GtkHBox containing the terminal and a scrollbar"""