mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 17:00:15 +00:00
ukernel: set close-on-exec on our socket
if the process we are in execs a child, it doesn't get our socket Change-Id: Iaf1831866e0dcda0449e75d89c576557c61090dd Reviewed-on: http://gerrit.openafs.org/5598 Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk> Reviewed-by: Derrick Brashear <shadow@dementix.org> Tested-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
parent
f722a75fe2
commit
87dcfc872c
@ -257,6 +257,10 @@ rxk_InitializeSocket(void)
|
|||||||
usr_assert(rc == 0);
|
usr_assert(rc == 0);
|
||||||
#endif /* AFS_USR_AIX_ENV */
|
#endif /* AFS_USR_AIX_ENV */
|
||||||
|
|
||||||
|
#ifdef FD_CLOEXEC
|
||||||
|
fcntl(sock, F_SETFD, FD_CLOEXEC);
|
||||||
|
#endif
|
||||||
|
|
||||||
usockp->sock = sock;
|
usockp->sock = sock;
|
||||||
usockp->port = lcladdr.sin_port;
|
usockp->port = lcladdr.sin_port;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user