From 541adff4d40db9d32076c222c8e1289c5fceb84c Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Wed, 30 Oct 2024 11:12:51 +0100 Subject: Improved clone wrapped function compatibility --- src/wrapped/wrappedlibc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/wrapped/wrappedlibc.c') 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); -- cgit 1.4.1