commit
bf89313138
|
@ -173,7 +173,7 @@ class URLHandler(Plugin):
|
||||||
|
|
||||||
def unload(self):
|
def unload(self):
|
||||||
"""Handle being removed"""
|
"""Handle being removed"""
|
||||||
if not self.match:
|
if not self.handler_name:
|
||||||
err('unload called without self.handler_name being set')
|
err('unload called without self.handler_name being set')
|
||||||
return
|
return
|
||||||
terminator = Terminator()
|
terminator = Terminator()
|
||||||
|
|
|
@ -275,14 +275,15 @@ class Terminal(Gtk.VBox):
|
||||||
dbg('close: called')
|
dbg('close: called')
|
||||||
self.cnxids.remove_widget(self.vte)
|
self.cnxids.remove_widget(self.vte)
|
||||||
self.emit('close-term')
|
self.emit('close-term')
|
||||||
try:
|
if self.pid is not None:
|
||||||
dbg('close: killing %d' % self.pid)
|
try:
|
||||||
os.kill(self.pid, signal.SIGHUP)
|
dbg('close: killing %d' % self.pid)
|
||||||
except Exception as ex:
|
os.kill(self.pid, signal.SIGHUP)
|
||||||
# We really don't want to care if this failed. Deep OS voodoo is
|
except Exception as ex:
|
||||||
# not what we should be doing.
|
# We really don't want to care if this failed. Deep OS voodoo is
|
||||||
dbg('os.kill failed: %s' % ex)
|
# not what we should be doing.
|
||||||
pass
|
dbg('os.kill failed: %s' % ex)
|
||||||
|
pass
|
||||||
|
|
||||||
if self.vte:
|
if self.vte:
|
||||||
self.terminalbox.remove(self.vte)
|
self.terminalbox.remove(self.vte)
|
||||||
|
|
Loading…
Reference in New Issue