1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

Create more sockets with SOCK_CLOEXEC [BZ #15722]

This commit is contained in:
Florian Weimer
2017-04-19 07:45:04 +02:00
parent e92030239a
commit 2f83a7294d
9 changed files with 28 additions and 10 deletions

View File

@ -383,6 +383,7 @@ rresvport_af (int *alport, sa_family_t family)
__set_errno (EAFNOSUPPORT);
return -1;
}
/* NB: No SOCK_CLOXEC for backwards compatibility. */
s = __socket(family, SOCK_STREAM, 0);
if (s < 0)
return -1;