Skip to content
Snippets Groups Projects
Commit e541da93 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

in case the select() returns -1 and errno is EINTR, it should not abort

the download (MT-adjustment)
parent 0fac349c
No related branches found
No related tags found
No related merge requests found
......@@ -194,7 +194,14 @@ Transfer (struct UrlData *data,
switch (select (maxfd, &readfd, &writefd, NULL, &interval)) {
case -1: /* select() error, stop reading */
keepon = 0; /* no more read or write */
#ifdef EINTR
/* The EINTR is not serious, and it seems you might get this more
ofen when using the lib in a multi-threaded environment! */
if(errno == EINTR)
;
else
#endif
keepon = 0; /* no more read or write */
continue;
case 0: /* timeout */
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment