diff mbox series

[v2,3/7] http: turn off curl signals

Message ID 20250219-toon-bundleuri-progress-v2-3-a84e7ffa921a@iotcl.com (mailing list archive)
State New
Headers show
Series Show progress when downloading from bundle URIs | expand

Commit Message

Toon Claes Feb. 19, 2025, 2:30 p.m. UTC
From: Jeff King <peff@peff.net>

Curl sets and clears the handler for SIGALRM, which makes it
incompatible with git's progress code. However, we can ask
curl not to do this.

Signed-off-by: Jeff King <peff@peff.net>
---
 http.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/http.c b/http.c
index f4504133e8..38c7c0cd54 100644
--- a/http.c
+++ b/http.c
@@ -1245,6 +1245,8 @@  static CURL *get_curl_handle(void)
 
 	set_curl_keepalive(result);
 
+	curl_easy_setopt(result, CURLOPT_NOSIGNAL, 1);
+
 	return result;
 }