[PATCH v2 3/7] http: turn off curl signals
- From
Toon Claes <toon@iotcl.com>
- Date
- Feb 19, 2025, 14:30 UTC
- Message-ID
- <20250219-toon-bundleuri-progress-v2-3-a84e7ffa921a@iotcl.com>
- In-Reply-To
- <20250219-toon-bundleuri-progress-v2-0-a84e7ffa921a@iotcl.com>
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 --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; }
-- 2.48.1.658.g4767266eb4