hurd: Respect existing FD_CLOEXEC in S_msg_set_fd
commit89f1e04174a6b6548d19f7f301ddcc8ab91d91df
authorSergey Bugaev <bugaevc@gmail.com>
Sat, 29 Apr 2023 13:13:53 +0000 (29 16:13 +0300)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 29 Apr 2023 14:57:04 +0000 (29 16:57 +0200)
tree43f9db318965d51e6d4f9d900fe5e809daeaa408
parent0e12519fe0567a6abcf6e2523102a768a520aef4
hurd: Respect existing FD_CLOEXEC in S_msg_set_fd

If the process has set the close-on-exec flag for the file descriptor,
it expects the file descriptor to get closed on exec, even if we replace
what the file descriptor refers to.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230429131354.2507443-6-bugaevc@gmail.com>
hurd/hurdmsg.c