Skip to content

Commit

Permalink
Explicitly exit() so that we don't freeze up on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Aug 25, 2020
1 parent d1beab6 commit 25be74c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cli/loader_exe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
#endif

0 comments on commit 25be74c

Please sign in to comment.