Code

Various plugins: Set the cURL option "CURLOPT_NOSIGNAL".
[collectd.git] / src / nginx.c
index 697684277a153911fdc43474cdc74bdab5b62d1e..d9529516331740741475b0baecacbc943af0700c 100644 (file)
@@ -119,6 +119,7 @@ static int init (void)
     return (-1);
   }
 
+  curl_easy_setopt (curl, CURLOPT_NOSIGNAL, 1);
   curl_easy_setopt (curl, CURLOPT_WRITEFUNCTION, nginx_curl_callback);
   curl_easy_setopt (curl, CURLOPT_USERAGENT, PACKAGE_NAME"/"PACKAGE_VERSION);
   curl_easy_setopt (curl, CURLOPT_ERRORBUFFER, nginx_curl_error);