From 54cce67156c7fcc58a00c23c33c4b16c87b5a80b Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 8 May 2023 15:29:54 +0200 Subject: Hide segfault on quit from my_exit too --- src/wrapped/wrappedlibc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 0c0c0238..aee46157 100755 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -3203,6 +3203,7 @@ EXPORT int my_register_printf_type(x64emu_t* emu, void* f) return my->register_printf_type(findprintf_typeFct(f)); } +extern int box64_quit; EXPORT void my_exit(x64emu_t* emu, int code) { if(emu->quitonexit) { @@ -3212,6 +3213,7 @@ EXPORT void my_exit(x64emu_t* emu, int code) return; } emu->quit = 1; + box64_quit = 1; exit(code); } -- cgit 1.4.1