PageRenderTime 58ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/jEdit/tags/jedit-4-1-pre5/bsh/commands/exit.bsh

#
Unknown | 11 lines | 9 code | 2 blank | 0 comment | 0 complexity | 3808b6a8968d5a8e94154f4c1a93a590 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. /**
  2. Call System.exit(0) unless bsh.system.shutdownOnExit == false.
  3. */
  4. bsh.help.exit = "usage: exit()";
  5. exit() {
  6. // shutdown Java VM unless flagged
  7. if ( bsh.system.shutdownOnExit != false )
  8. System.exit(0);
  9. }