-
Peter J. Holzer authored
Linux provides accept4(2) which will return a socket with FD_CLOEXEC set when called with the SOCK_CLOEXEC flag. So call this when available and fall back to fcntl(..., FD_CLOEXEC) if not.
e175fe21
Linux provides accept4(2) which will return a socket with FD_CLOEXEC set when called with the SOCK_CLOEXEC flag. So call this when available and fall back to fcntl(..., FD_CLOEXEC) if not.