[PATCH] sigpipe: init the struct so that first apply ignores
authorDaniel Stenberg <daniel@haxx.se>
Sun, 4 Aug 2024 22:17:17 +0000 (00:17 +0200)
committerCarlos Henrique Lima Melara <charlesmelara@riseup.net>
Fri, 9 Aug 2024 22:47:58 +0000 (19:47 -0300)
commit567329d29da022c511cf3cc219ba739e74e2bc9d
tree18d22e893ea4a56c098ac89ed79fa047a6f8f6c4
parent7576bd38eeb09e756623fc336d6667802cf9c1d6
[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

Bug: https://github.com/curl/curl/issues/14344
Bug-Debian: https://bugs.debian.org/1077854
Origin: upstream, https://github.com/curl/curl/commit/3eec5afbd0b6377eca893c392569b2faf094d970
Last-Update: 2024-08-09

Gbp-Pq: Name ignore-SIGPIPE-after-init.patch
lib/sigpipe.h