From: pcarana Date: Tue, 21 Jul 2020 16:41:08 +0000 (-0500) Subject: Use CURLOPT_NOSIGNAL to avoid signals at the multithreaded environment X-Git-Tag: v1.4.0~16 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=beb26b8549954da35c5aea3734d9b6ec3ba73b16;p=thirdparty%2FFORT-validator.git Use CURLOPT_NOSIGNAL to avoid signals at the multithreaded environment --- 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;