From 7b6c7de1fadd10f7a6400b22fd3738a9e099d11f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Wed, 16 Feb 2022 20:53:26 +0200 Subject: [PATCH] fixup! Sortix patches --- connect.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/connect.c b/connect.c index 8d393fd..8a6ad34 100644 --- a/connect.c +++ b/connect.c @@ -672,7 +672,7 @@ static void try_connect(struct connection *c) #if defined(__aarch64__) && defined(__ILP32__) errno = EINPROGRESS; /* arm64 ilp32 bug */ #endif - rs = connect(s, (struct sockaddr *)(void *)&sa, sizeof sa); + EINTRLOOP(rs, connect(s, (struct sockaddr *)(void *)&sa, sizeof sa)); #ifdef SUPPORT_IPV6 } else if (addr->af == AF_INET6) { struct sockaddr_in6 sa; @@ -686,14 +686,14 @@ static void try_connect(struct connection *c) #if defined(__aarch64__) && defined(__ILP32__) errno = EINPROGRESS; /* arm64 ilp32 bug */ #endif - rs = connect(s, (struct sockaddr *)(void *)&sa, sizeof sa); + EINTRLOOP(rs, connect(s, (struct sockaddr *)(void *)&sa, sizeof sa)); #endif } else { rs = -1; errno = EINVAL; } if (rs) { - if (errno != EALREADY && errno != EINPROGRESS && errno != EINTR) { + if (errno != EALREADY && errno != EINPROGRESS) { #ifdef BEOS if (errno == EWOULDBLOCK) errno = ETIMEDOUT; #endif