1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

Switch to accept4

* lib/Makefile.am:
* m4/gnulib-cache.m4:
* m4/gnulib-comp.m4: Switch from accept gnulib module to accept4.
* libguile/socket.c (scm_accept): Use accept4.
This commit is contained in:
Andy Wingo 2017-02-15 21:45:17 +01:00
parent 7e641595cd
commit 9399c13479
4 changed files with 23 additions and 115 deletions

View file

@ -1268,7 +1268,7 @@ SCM_DEFINE (scm_accept, "accept", 1, 0, 0,
sock = SCM_COERCE_OUTPORT (sock);
SCM_VALIDATE_OPFPORT (1, sock);
fd = SCM_FPORT_FDES (sock);
SCM_SYSCALL (newfd = accept (fd, (struct sockaddr *) &addr, &addr_size));
SCM_SYSCALL (newfd = accept4 (fd, (struct sockaddr *) &addr, &addr_size, 0));
if (newfd == -1)
{
if (errno == EAGAIN || errno == EWOULDBLOCK)