about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/wrapped/wrappedlibc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c
index e5fcad01..2eead1f2 100755
--- a/src/wrapped/wrappedlibc.c
+++ b/src/wrapped/wrappedlibc.c
@@ -2836,6 +2836,7 @@ EXPORT void my_exit(x64emu_t* emu, int code)
         emu->quitonexit = 2;
         return;
     }
+    emu->quit = 1;
     exit(code);
 }