Add pidfd_open syscall helpers

This commit is contained in:
wannacu committed 2022-07-15 13:44:07 +08:00
1 parent 8d60d70553
commit 0dd03e9cb6
4 files changed
+23 -1

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
#include "FEXHeaderUtils/Syscalls.h"
#include "Logger.h"
#include "SquashFS.h"
@@ -398,7 +399,7 @@ namespace ProcessPipe {
break;
}
case FEXServerClient::PacketType::TYPE_GET_PID_FD: {
int FD = ::syscall(SYS_pidfd_open, ::getpid(), 0);
int FD = FHU::Syscalls::pidfd_open(::getpid(), 0);
SendFDSuccessPacket(Socket, FD);