Closed leahneukirchen closed 7 months ago
yes, and the executables should too.
So (1) fix things with an unwind-protect in src/gerbil/main.ss#main
, but I'm not sure what is step (2).
I think we also need to do it in the executable main we generate in the compiler, it is called gerbil-main and it happens in the driver.
Stupid question: (force-output (current-output-port))
before or after (force-output (current-error-port))
? And withinwith-catch void
each, innit?
output before error seems more reasonable.
with-catch might be unnessary for the flush, but cant hurt.
Print one line:
Explicit flushing helps:
I think the Gerbil runtime should flush (all?) ports on exit.