From: tommy Date: Tue, 13 Jan 2026 04:48:17 +0000 (+0800) Subject: sigpipe: unset SA_SIGINFO since it is using sa_handler X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cacfcd30f52ccc630b941514830925bc9c5053a;p=thirdparty%2Fcurl.git sigpipe: unset SA_SIGINFO since it is using sa_handler Closes #20278 Signed-off-by: tommy --- diff --git a/lib/sigpipe.h b/lib/sigpipe.h index 2fd211c514..9fe13af92b 100644 --- a/lib/sigpipe.h +++ b/lib/sigpipe.h @@ -58,6 +58,8 @@ static CURL_INLINE void sigpipe_ignore(struct Curl_easy *data, action = ig->old_pipe_act; /* ignore this signal */ action.sa_handler = SIG_IGN; + /* clear SA_SIGINFO flag since we are using sa_handler */ + action.sa_flags &= ~SA_SIGINFO; sigaction(SIGPIPE, &action, NULL); } }