efl_net_dialer_http: use CURLOPT_NOSIGNAL.

EFL uses its own signal handlers, so we must disable CURL's usage of
those.
This commit is contained in:
Gustavo Sverzut Barbieri 2016-09-01 14:21:55 -03:00
parent 6ddd01bffb
commit 57e765a758
2 changed files with 2 additions and 0 deletions

View File

@ -254,6 +254,7 @@ typedef enum
CINIT(DEBUGDATA, OBJECTPOINT, 95),
CINIT(COOKIESESSION, LONG, 96),
CINIT(BUFFERSIZE, LONG, 98),
CINIT(NOSIGNAL, LONG, 99),
CINIT(PROXYTYPE, LONG, 101),
CINIT(ACCEPT_ENCODING, OBJECTPOINT, 102),
CINIT(PRIVATE, OBJECTPOINT, 103),

View File

@ -1145,6 +1145,7 @@ _efl_net_dialer_http_efl_object_constructor(Eo *o, Efl_Net_Dialer_Http_Data *pd)
curl_easy_setopt(pd->easy, CURLOPT_OPENSOCKETDATA, o);
curl_easy_setopt(pd->easy, CURLOPT_NOPROGRESS, 0L);
curl_easy_setopt(pd->easy, CURLOPT_NOSIGNAL, 1L);
curl_easy_setopt(pd->easy, CURLOPT_VERBOSE, (long)(eina_log_domain_level_check(_ecore_con_log_dom, EINA_LOG_LEVEL_DBG)));