mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
me stupid, errno is not set for mere select()-exceptions
This commit is contained in:
parent
cc8e8db1e5
commit
62ab21ce7d
@ -101,8 +101,6 @@
|
|||||||
#include "share.h"
|
#include "share.h"
|
||||||
#include "memory.h"
|
#include "memory.h"
|
||||||
#include "select.h"
|
#include "select.h"
|
||||||
#include "strerror.h"
|
|
||||||
#include "connect.h" /* for the Curl_ourerrno() proto */
|
|
||||||
|
|
||||||
#define _MPRINTF_REPLACE /* use our functions only */
|
#define _MPRINTF_REPLACE /* use our functions only */
|
||||||
#include <curl/mprintf.h>
|
#include <curl/mprintf.h>
|
||||||
@ -290,8 +288,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
|||||||
|
|
||||||
select_res = Curl_select(fd_read, fd_write, 0);
|
select_res = Curl_select(fd_read, fd_write, 0);
|
||||||
if(select_res & CSELECT_ERR) {
|
if(select_res & CSELECT_ERR) {
|
||||||
failf(data, "select/poll returned error: %s",
|
failf(data, "select/poll returned error");
|
||||||
Curl_strerror(conn, Curl_ourerrno()));
|
|
||||||
return CURLE_SEND_ERROR;
|
return CURLE_SEND_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user