Can't exit from root (if root)
502336
def send_config_set(self, config_commands=None, exit_config_mode=True, **kwargs):
        """"""
        if self.username == "root":
            exit_config_mode = False
        return super(LinuxSSH, self).send_config_set(
            config_commands=config_commands, exit_config_mode=exit_config_mode, **kwargs
        )
534028
public function leaveLegacyRootDir()
    {
        $previousDir = $this->previousRunningDir;
        if (!$previousDir) {
            if ($this->logger) {
                $this->logger->warning(
                    "Trying to leave legacy root dir without a previously executing dir. Falling back to '$this->webRootDir'"
                );
            }
            $previousDir = $this->webRootDir;
        }

        $this->previousRunningDir = null;
        if ($this->logger) {
            $this->logger->debug("Legacy kernel: Leaving '$this->legacyRootDir' for '$previousDir'");
        }
        chdir($previousDir);
    }
383627
void exit() {

        if (m_changed) {
            CmsConfirmationDialog.show(
                CmsVaadinUtils.getMessageText(org.opencms.ui.apps.Messages.GUI_EDITOR_CLOSE_CAPTION_0),
                CmsVaadinUtils.getMessageText(org.opencms.ui.apps.Messages.GUI_EDITOR_CLOSE_TEXT_0),
                new Runnable() {

                    public void run() {

                        exitInternal();
                    }
                });
        } else {
            exitInternal();
        }

    }
436978
def exit_config_mode(self, exit_config="exit all", pattern="#"):
        """"""
        return super(RadETXBase, self).exit_config_mode(
            exit_config=exit_config, pattern=pattern
        )
1211165
def root(self):
        ''''''
        with self._mutex:
            if self._parent:
                return self._parent.root
            else:
                return self
1093725
def exit(self, pub_id, *node_ids):
        ''''''
        try:
            pub = self['pubs'][pub_id]
        except KeyError:
            raise ValueError('Pub {} is not available'.format(pub_id))
        for node_id in node_ids:
            node = self.get_agent(node_id)
            if pub_id == node['pub']:
                del node['pub']
                pub['occupancy'] -= 1
958454
function exitWithError(error) {
    if (error instanceof Error) {
        process.stderr.write(chalk.red(error));
    } else {
        help();
    }
    process.exit(1);
}
1066034
def exit_if_path_exists(self):
        
        if os.path.exists(self.output_path):
            ui.error(c.MESSAGES["path_exists"], self.output_path)
            sys.exit(1)
293568
private Exit exit(final Exit exit) {
        final long start = System.currentTimeMillis();
        final long max = this.options.lifetime();
        return new Exit.Or(
            exit,
            new Lifetime(start, max)
        );
    }
740683
def exit(self, status=0, message=None):
        
        if message:
            raise HelpBanner(message.strip(), code=status)
1104114
def exit_on_error(self):
        """"""
        if self.exit_code:
            if self.errmsg is not None:
                logger.show("Exiting due to " + self.errmsg + ".")
                self.errmsg = None
            if self.using_jobs:
                kill_children()
            sys.exit(self.exit_code)
1203417
def exit_with_error(message):
    
    click.secho(message, err=True, bg='red', fg='white')
    sys.exit(0)
929732
function exitIfDisabled () {
  var CI = process.env.CI === 'true';
  var KARMA = process.env.KARMA === 'true';

  if (CI && !KARMA) {
    console.warn('Karma is not enabled');
    process.exit();
  }
}
709952
def exit_node(tree_node)
      parent = @stack.last
      if @delegate
        @delegate.exit_node(tree_node) if @delegate.respond_to? :exit_node
      else
        @on_exit_tree_node_blocks.each do |b|
          if b.arity == 1
            b.call(tree_node)
          elsif b.arity == 2
            b.call(tree_node, parent)
          end
        end
      end
      @stack.pop
    end
728759
def exit_if_no_roles(roles_count, roles_path):
    
    if roles_count == 0:
        ui.warn(c.MESSAGES["empty_roles_path"], roles_path)
        sys.exit()
591817
def _root(path, root):
    '''
    
    '''
    if root:
        return os.path.join(root, os.path.relpath(path, os.path.sep))
    else:
        return path
155243
def postloop(self) -> None:
        """"""
        code = self.exit_code if self.exit_code is not None else 0
        self.poutput('{!r} exiting with code: {}'.format(sys.argv[0], code))