(self)
Close ourselves
Close ourselves
Close ourselves
def close(self):
        """Close ourselves"""
        dbg('close: called')
        self.cnxids.remove_widget(self.vte)
        self.emit('close-term')
        if self.pid is not None:
            try:
                dbg('close: killing %d' % self.pid)
                os.kill(self.pid, signal.SIGHUP)
            except Exception as ex:
                # We really don't want to care if this failed. Deep OS voodoo is
                # not what we should be doing.
                dbg('os.kill failed: %s' % ex)
                pass

        if self.vte:
            self.terminalbox.remove(self.vte)
            del(self.vte)
def close ( self ) : dbg ( 'close: called' ) self . cnxids . remove_widget ( self . vte ) self . emit ( 'close-term' ) if self . pid is not None : try : dbg ( 'close: killing %d' % self . pid ) os . kill ( self . pid , signal . SIGHUP ) except Exception as ex : # We really don't want to care if this failed. Deep OS voodoo is # not what we should be doing. dbg ( 'os.kill failed: %s' % ex ) pass if self . vte : self . terminalbox . remove ( self . vte ) del ( self . vte )