civodul pushed a commit to branch main
in repository guile.

commit 64449a835a0002dbc05d54d5d1389e9052489348
Author: Ludovic Courtès <[email protected]>
AuthorDate: Thu Jun 16 09:26:47 2022 +0200

    '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).
---
 libguile/socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libguile/socket.c b/libguile/socket.c
index 77cdd74ef..b137a7932 100644
--- a/libguile/socket.c
+++ b/libguile/socket.c
@@ -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;
     }

Reply via email to