mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +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:
parent
09b1b09c19
commit
781d29a337
7 changed files with 15 additions and 15 deletions
|
@ -151,9 +151,9 @@ int sendfd(int sockfd, int fd)
|
|||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int recvfd(int sockfd)
|
||||
int recvfd(int sockfd, int options)
|
||||
{
|
||||
int rc = syscall(SC_recvfd, sockfd);
|
||||
int rc = syscall(SC_recvfd, sockfd, options);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue