diff --git a/src/rx/UKERNEL/rx_knet.c b/src/rx/UKERNEL/rx_knet.c index 6692b5444a..082ff68603 100644 --- a/src/rx/UKERNEL/rx_knet.c +++ b/src/rx/UKERNEL/rx_knet.c @@ -257,6 +257,10 @@ rxk_InitializeSocket(void) usr_assert(rc == 0); #endif /* AFS_USR_AIX_ENV */ +#ifdef FD_CLOEXEC + fcntl(sock, F_SETFD, FD_CLOEXEC); +#endif + usockp->sock = sock; usockp->port = lcladdr.sin_port;