Clear up a signal when closing a terminal and add some debugging
This commit is contained in:
parent
4b4b8cce9a
commit
c844184f9f
|
@ -198,13 +198,16 @@ class Terminal(gtk.VBox):
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
"""Close ourselves"""
|
"""Close ourselves"""
|
||||||
dbg('Terminal::close: emitting close-term')
|
dbg('close: called')
|
||||||
|
self.cnxids.remove_signal(self.vte, 'child-exited')
|
||||||
self.emit('close-term')
|
self.emit('close-term')
|
||||||
try:
|
try:
|
||||||
|
dbg('close: killing %d' % self.pid)
|
||||||
os.kill(self.pid, signal.SIGHUP)
|
os.kill(self.pid, signal.SIGHUP)
|
||||||
except:
|
except Exception, ex:
|
||||||
# We really don't want to care if this failed. Deep OS voodoo is
|
# We really don't want to care if this failed. Deep OS voodoo is
|
||||||
# not what we should be doing.
|
# not what we should be doing.
|
||||||
|
dbg('os.kill failed: %s' % ex)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def create_terminalbox(self):
|
def create_terminalbox(self):
|
||||||
|
|
Loading…
Reference in New Issue