about summary refs log tree commit diff stats
path: root/src/wrapped
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-10-30 11:12:51 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-10-30 11:12:51 +0100
commit541adff4d40db9d32076c222c8e1289c5fceb84c (patch)
tree9fc89c33599f3ef43cfe9ebbf4e7408ff81a9801 /src/wrapped
parent39189a746bbe9f93617eda2b35c7b97ed105542a (diff)
downloadbox64-541adff4d40db9d32076c222c8e1289c5fceb84c.tar.gz
box64-541adff4d40db9d32076c222c8e1289c5fceb84c.zip
Improved clone wrapped function compatibility
Diffstat (limited to 'src/wrapped')
-rw-r--r--src/wrapped/wrappedlibc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c
index db57e446..8c9be048 100644
--- a/src/wrapped/wrappedlibc.c
+++ b/src/wrapped/wrappedlibc.c
@@ -3632,6 +3632,7 @@ static int clone_fn(void* p)
     x64emu_t *emu = arg->emu;
     R_RSP = arg->stack;
     emu->flags.quitonexit = 1;
+    thread_forget_emu();    //TODO: not all will flags needs this, probably just CLONE_VM?
     thread_set_emu(emu);
     if(arg->flags&CLONE_NEWUSER) {
         init_mutexes(my_context);