]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
sigpipe: unset SA_SIGINFO since it is using sa_handler
authortommy <tommyskypromax@gmail.com>
Tue, 13 Jan 2026 04:48:17 +0000 (12:48 +0800)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 19 Jan 2026 22:19:47 +0000 (23:19 +0100)
Closes #20278

Signed-off-by: tommy <tommyskypromax@gmail.com>
lib/sigpipe.h

index 2fd211c5142934e9a654707223b3a227fd794343..9fe13af92b6431b35e095a7f1b7ab5cd24c44632 100644 (file)
@@ -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);
   }
 }