mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-22 03:30:22 +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:
parent
cc45597681
commit
64449a835a
1 changed files with 1 additions and 1 deletions
|
@ -890,7 +890,7 @@ SCM_DEFINE (scm_connect, "connect", 2, 1, 1,
|
||||||
|
|
||||||
free (soka);
|
free (soka);
|
||||||
errno = save_errno;
|
errno = save_errno;
|
||||||
if (errno == EINPROGRESS)
|
if (errno == EINPROGRESS || errno == EAGAIN)
|
||||||
return SCM_BOOL_F;
|
return SCM_BOOL_F;
|
||||||
SCM_SYSERROR;
|
SCM_SYSERROR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue