Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153001635
D55406.id172355.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.id172355.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
Sun, Apr 19, 1:55 PM (2 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28926581
Default Alt Text
D55406.id172355.diff (511 B)
Attached To
Mode
D55406: libfetch: Fail hard if interrupted while connecting
Attached
Detach File
Event Timeline
Log In to Comment