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

'connect' handles EAGAIN like EINPROGRESS.

* libguile/socket.c (scm_connect): Handle EAGAIN the same way as
EINPROGRESS (connect(2) returns EAGAIN for Unix-domain sockets and
socketpairs).
This commit is contained in:
Ludovic Courtès 2022-06-16 09:26:47 +02:00
parent cc45597681
commit 64449a835a

View file

@ -890,7 +890,7 @@ SCM_DEFINE (scm_connect, "connect", 2, 1, 1,
free (soka);
errno = save_errno;
if (errno == EINPROGRESS)
if (errno == EINPROGRESS || errno == EAGAIN)
return SCM_BOOL_F;
SCM_SYSERROR;
}