curl/curl-sigpipe.patch
Pedro Monreal Gonzalez af35f5848c - Update to 8.10.1:
* Bugfixes:
    - autotools: fix `--with-ca-embed` build rule
    - cmake: ensure `CURL_USE_OPENSSL`/`USE_OPENSSL_QUIC` are set in sync
    - cmake: fix MSH3 to appear on the feature list
    - connect: store connection info when really done
    - FTP: partly revert eeb7c1280742f5c8fa48a4340fc1e1a1a2c7075a
    - http2: when uploading data from stdin, fix eos forwarding
    - http: make max-filesize check not count ignored bodies
    - lib: fix AF_INET6 use outside of USE_IPV6
    - multi: check that the multi handle is valid in curl_multi_assign
    - QUIC: on connect, keep on trying on draining server
    - request: correctly reset the eos_sent flag
    - setopt: remove superfluous use of ternary expressions
    - singleuse: drop `Curl_memrchr()` for no-HTTP builds
    - tool_cb_wrt: use "curl_response" if no file name in URL
    - transfer: fix sendrecv() without interim poll
    - vtls: fix `Curl_ssl_conn_config_match` doc param

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/curl?expand=0&rev=378
2024-09-24 12:23:33 +00:00

33 lines
912 B
Diff

From 3eec5afbd0b6377eca893c392569b2faf094d970 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Mon, 5 Aug 2024 00:17:17 +0200
Subject: [PATCH] sigpipe: init the struct so that first apply ignores
Initializes 'no_signal' to TRUE, so that a call to sigpipe_apply() after
init ignores the signal (unless CURLOPT_NOSIGNAL) is set.
I have read the existing code multiple times now and I think it gets the
initial state reversed this missing to ignore.
Regression from 17e6f06ea37136c36d27
Reported-by: Rasmus Thomsen
Fixes #14344
Closes #14390
---
lib/sigpipe.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/sigpipe.h b/lib/sigpipe.h
index b91a2f51333956..d78afd905d3414 100644
--- a/lib/sigpipe.h
+++ b/lib/sigpipe.h
@@ -39,6 +39,7 @@ struct sigpipe_ignore {
static void sigpipe_init(struct sigpipe_ignore *ig)
{
memset(ig, 0, sizeof(*ig));
+ ig->no_signal = TRUE;
}
/*