[PATCH] Create more sockets with SOCK_CLOEXEC [BZ #15722]

Joseph Myers joseph@codesourcery.com
Wed Apr 19 15:19:00 GMT 2017


On Tue, 18 Apr 2017, Florian Weimer wrote:

> diff --git a/inet/rcmd.c b/inet/rcmd.c
> index b7cc7a8..e43d4af 100644
> --- a/inet/rcmd.c
> +++ b/inet/rcmd.c
> @@ -383,6 +383,7 @@ rresvport_af (int *alport, sa_family_t family)
>  		__set_errno (EAFNOSUPPORT);
>  		return -1;
>  	}
> +	/* NB: No SOCK_CLOXEC for backwards compatibility.  */

"CLOXEC" typo, repeated elsewhere in this patch.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list