1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00

Kernel+Userland: Give sys$recvfd() an options argument for O_CLOEXEC

@bugaevc pointed out that we shouldn't be setting this flag in
userspace, and he's right of course.
This commit is contained in:
Andreas Kling 2021-02-14 10:38:22 +01:00
parent 09b1b09c19
commit 781d29a337
7 changed files with 15 additions and 15 deletions

View file

@ -456,7 +456,7 @@ u32 Emulator::virt_syscall(u32 function, u32 arg1, u32 arg2, u32 arg3)
case SC_sendfd:
return virt$sendfd(arg1, arg2);
case SC_recvfd:
return virt$recvfd(arg1);
return virt$recvfd(arg1, arg2);
case SC_open:
return virt$open(arg1);
case SC_pipe:
@ -563,9 +563,9 @@ int Emulator::virt$sendfd(int socket, int fd)
return syscall(SC_sendfd, socket, fd);
}
int Emulator::virt$recvfd(int socket)
int Emulator::virt$recvfd(int socket, int options)
{
return syscall(SC_recvfd, socket);
return syscall(SC_recvfd, socket, options);
}
int Emulator::virt$profiling_enable(pid_t pid)