From ca2d2520d20844f2fa84e1e27e175d25361b041a Mon Sep 17 00:00:00 2001 From: LC Date: Sun, 12 Jul 2026 12:14:02 -0400 Subject: [PATCH] Signals: Preprocessor disable intentional dead code in userfaultfd Noticed this when going through the syscalls. Avoids potential warnings. --- Source/Tools/LinuxEmulation/LinuxSyscalls/Syscalls/Signals.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/Syscalls/Signals.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/Syscalls/Signals.cpp index b59d9bf06..8723026ef 100644 --- a/Source/Tools/LinuxEmulation/LinuxSyscalls/Syscalls/Signals.cpp +++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/Syscalls/Signals.cpp @@ -43,8 +43,10 @@ void RegisterSignals(FEX::HLE::SyscallHandler* Handler) { // Disable userfaultfd until we can properly emulate it // This is okay because the kernel configuration allows you to disable it at compile time return -ENOSYS; +#if 0 uint64_t Result = ::syscall(SYSCALL_DEF(userfaultfd), flags); SYSCALL_ERRNO(); +#endif }); REGISTER_SYSCALL_IMPL(signalfd, [](FEXCore::Core::CpuStateFrame* Frame, int fd, const uint64_t* mask, size_t sigsetsize) -> uint64_t {