]> granicus.if.org Git - curl/commitdiff
multi: make the closure handle "inherit" CURLOPT_NOSIGNAL
authorDaniel Stenberg <daniel@haxx.se>
Thu, 18 Oct 2018 21:35:12 +0000 (23:35 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 19 Oct 2018 09:03:17 +0000 (11:03 +0200)
Otherwise, closing that handle can still cause surprises!

Reported-by: Martin Ankerl
Fixes #3138
Closes #3147

lib/multi.c

index acf9ecc6e24bee728ed4e103e9e4d73c411ad45a..9485f7857f1d279da67f9020d1f33b03bb613e31 100644 (file)
@@ -492,6 +492,8 @@ CURLMcode curl_multi_add_handle(struct Curl_multi *multi,
   data->state.conn_cache->closure_handle->set.timeout = data->set.timeout;
   data->state.conn_cache->closure_handle->set.server_response_timeout =
     data->set.server_response_timeout;
+  data->state.conn_cache->closure_handle->set.no_signal =
+    data->set.no_signal;
 
   update_timer(multi);
   return CURLM_OK;