From 25be74c013f68fe6a4256120154e74d7084a497a Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Mon, 24 Aug 2020 20:36:20 -0700 Subject: [PATCH] Explicitly `exit()` so that we don't freeze up on Windows --- cli/loader_exe.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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