Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167213093
D55406.id172333.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
511 B
Referenced Files
None
Subscribers
None
D55406.id172333.diff
View Options
diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c
--- a/lib/libfetch/common.c
+++ b/lib/libfetch/common.c
@@ -651,7 +651,13 @@
goto syserr;
}
/* attempt to connect to server address */
- if ((err = connect(sd, sai->ai_addr, sai->ai_addrlen)) == 0)
+ while ((err = connect(sd, sai->ai_addr, sai->ai_addrlen)) < 0) {
+ if (errno == EINTR && fetchRestartCalls)
+ continue;
+ break;
+ }
+ /* success? */
+ if (err == 0)
break;
/* clean up before next attempt */
close(sd);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 20, 11:58 PM (16 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36951899
Default Alt Text
D55406.id172333.diff (511 B)
Attached To
Mode
D55406: libfetch: Fail hard if interrupted while connecting
Attached
Detach File
Event Timeline
Log In to Comment