From beb26b8549954da35c5aea3734d9b6ec3ba73b16 Mon Sep 17 00:00:00 2001 From: pcarana Date: Tue, 21 Jul 2020 11:41:08 -0500 Subject: [PATCH] Use CURLOPT_NOSIGNAL to avoid signals at the multithreaded environment --- src/http/http.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/http/http.c b/src/http/http.c index c49aee71..d34e17de 100644 --- a/src/http/http.c +++ b/src/http/http.c @@ -90,6 +90,9 @@ http_easy_init(struct http_handler *handler) /* Refer to its error buffer */ curl_easy_setopt(tmp, CURLOPT_ERRORBUFFER, handler->errbuf); + /* Prepare for multithreading, avoid signals */ + curl_easy_setopt(tmp, CURLOPT_NOSIGNAL, 1L); + handler->curl = tmp; return 0; -- 2.47.3