[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 01/07: 'connect' handles EAGAIN like EINPROGRESS.
From: |
Ludovic Courtès |
Subject: |
[Guile-commits] 01/07: 'connect' handles EAGAIN like EINPROGRESS. |
Date: |
Thu, 16 Jun 2022 04:06:51 -0400 (EDT) |
civodul pushed a commit to branch main
in repository guile.
commit 64449a835a0002dbc05d54d5d1389e9052489348
Author: Ludovic Courtès <ludo@gnu.org>
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;
}
- [Guile-commits] branch main updated (cc4559768 -> 7e048c6c5), Ludovic Courtès, 2022/06/16
- [Guile-commits] 01/07: 'connect' handles EAGAIN like EINPROGRESS.,
Ludovic Courtès <=
- [Guile-commits] 02/07: 'module-define!' honors the 'module' parameter., Ludovic Courtès, 2022/06/16
- [Guile-commits] 05/07: Allow null bytes in UNIX sockets., Ludovic Courtès, 2022/06/16
- [Guile-commits] 06/07: Add missing #:modules argument for coverage-data->lcov., Ludovic Courtès, 2022/06/16
- [Guile-commits] 07/07: Update NEWS., Ludovic Courtès, 2022/06/16
- [Guile-commits] 03/07: Allow (library ...) form in cond-expand inside R7RS define-library., Ludovic Courtès, 2022/06/16
- [Guile-commits] 04/07: Allow empty vendor string in GNU target triplets., Ludovic Courtès, 2022/06/16