mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
in case the select() returns -1 and errno is EINTR, it should not abort
the download (MT-adjustment)
This commit is contained in:
parent
0fac349c62
commit
e541da93fe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user