diff --git a/cli/loader_exe.c b/cli/loader_exe.c index d4a0b0e1e5bac..b74fd062c4b37 100644 --- a/cli/loader_exe.c +++ b/cli/loader_exe.c @@ -42,9 +42,13 @@ int main(int argc, char * argv[]) #endif // Call load_repl with our initialization arguments: - return load_repl(exe_dir, argc, (char **)argv); + int ret = load_repl(exe_dir, argc, (char **)argv); + + // On Windows we're running without the CRT that would do this for us + exit(ret); + return ret; } #ifdef __cplusplus } // extern "C" -#endif \ No newline at end of file +#endif