...in --batch-mode. This is basically
93d3d5c, which was mistakenly
undone by
85c1fb4 because it assumed the abort resulted in an error
that would stop the REPL. Signaling an error after the restart and
cleanup is... tricky... so just %exit.
(cmdl-message/strings "Aborting!: out of memory")
;; Clean up whatever possible to avoid a reoccurrence.
(cmdl-message/active
- (lambda (port)
- port
- (with-gc-notification! #t gc-clean)))))))
+ (if (nearest-cmdl/batch-mode?)
+ (lambda (port)
+ (newline port)
+ (%exit 1))
+ (lambda (port)
+ port
+ (with-gc-notification! #t gc-clean))))))))
(define gc-boot-loading?)