Use scheme-exit-now instead of exit.

This commit is contained in:
mainzelm 2001-11-21 14:20:16 +00:00
parent 9ea85ca468
commit d7f602982e
2 changed files with 7 additions and 7 deletions

View File

@ -316,6 +316,7 @@
; with-current-output-port exit
scsh-level-0-internals ; set-command-line-args! init-scsh-vars
threads
root-scheduler ; scheme-exit-now
scheme)
(files top meta-arg))

View File

@ -275,18 +275,17 @@
(in-package (user-environment) '())))))
((eq? term-switch 'c)
(eval (read-exactly-one-sexp-from-string term-val)
(interaction-environment))
(exit 0))
(scheme-exit-now
(eval (read-exactly-one-sexp-from-string term-val)
(interaction-environment)))) )
(top-entry ; There was a -e <entry>.
((eval top-entry (interaction-environment))
(command-line))
(exit 0))
(scheme-exit-now ((eval top-entry (interaction-environment))
(command-line))))
;; Otherwise, the script executed as it loaded,
;; so we're done.
(else (exit 0)))))))))))))
(else (scheme-exit-now 0))))))))))))