def abort_test(action): """ if ssh dies, we don't need to try to read/write from its sockets """ e = child.poll() if e is not None: error_message = "cannot %s using %s: the SSH process has terminated with exit code=%s" % (action, display_desc["full_ssh"], e) print(error_message) from wimpiggy.util import gtk_main_quit_really gtk_main_quit_really() raise IOError(error_message)
def quit_launcher(*args): gtk_main_quit_really()
def quit(self, *args): gtk_main_quit_really()
def ssh_connect_failed(message): #by the time ssh fails, we may have entered the gtk main loop #(and more than once thanks to the clipboard code..) from wimpiggy.util import gtk_main_quit_really gtk_main_quit_really()
def _process_connection_lost(self, packet): log.error("Connection lost") gtk_main_quit_really()
def _wm_quit(self, *args): gtk_main_quit_really()
def quit(self, upgrading): self._upgrading = upgrading gtk_main_quit_really()