Skip to content

Commit

Permalink
Merge pull request #4248 from Sonicadvance1/fix_cefsimple
Browse files Browse the repository at this point in the history
LinuxSyscalls: Ensure CSIGNAL is merged back in to flags for clone2
  • Loading branch information
lioncash authored Jan 7, 2025
2 parents a6c67ca + 5fee802 commit c7fb95a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Tools/LinuxEmulation/LinuxSyscalls/Syscalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ static uint64_t Clone2Handler(FEXCore::Core::CpuStateFrame* Frame, FEX::HLE::clo

// Remove flags that will break us
constexpr uint64_t INVALID_FOR_HOST = CLONE_SETTLS;
uint64_t Flags = args->args.flags & ~INVALID_FOR_HOST;
uint64_t Flags = (args->args.flags & ~INVALID_FOR_HOST) | args->args.exit_signal;
uint64_t Result = ::clone(Clone2HandlerRet, // To be called function
(void*)((uint64_t)args->NewStack + args->StackSize), // Stack
Flags, // Flags
Expand Down

0 comments on commit c7fb95a

Please sign in to comment.