]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Use CURLOPT_NOSIGNAL to avoid signals at the multithreaded environment
authorpcarana <pc.moreno2099@gmail.com>
Tue, 21 Jul 2020 16:41:08 +0000 (11:41 -0500)
committerpcarana <pc.moreno2099@gmail.com>
Tue, 21 Jul 2020 16:41:08 +0000 (11:41 -0500)
src/http/http.c

index c49aee71b317fe21d6fab3b6a0ff0cfe129f70ac..d34e17de36f3f2a4b5b9a27b127ca4ab86d8f2f0 100644 (file)
@@ -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;