mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 14:30:06 +00:00
hurd: Don't pass FD_CLOEXEC in CMSG_DATA
The flags are used by _hurd_intern_fd, which takes O_* flags, not FD_*.
Also, it is of no concern to the receiving process whether or not
the sender process wants to close its copy of sent file descriptor
upon exec, and it should not influence whether or not the received
file descriptor gets the FD_CLOEXEC flag set in the receiving process.
The latter should in fact be dependent on the MSG_CMSG_CLOEXEC flag
being passed to the recvmsg () call, which is going to be implemented
in the following commit.
Fixes 344e755248
"hurd: Support sending file descriptors over Unix sockets"
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
This commit is contained in:
parent
c02b26455b
commit
0822e3552a
@ -138,8 +138,8 @@ __libc_sendmsg (int fd, const struct msghdr *message, int flags)
|
||||
0, 0, 0, 0);
|
||||
if (! err)
|
||||
nports++;
|
||||
/* We pass the flags in the control data. */
|
||||
fds[i] = descriptor->flags;
|
||||
/* We do not currently have flags to pass. */
|
||||
fds[i] = 0;
|
||||
err;
|
||||
}));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user