mirror of
https://github.com/curl/curl.git
synced 2026-07-24 17:07:16 +03:00
sigpipe: unset SA_SIGINFO since it is using sa_handler
Closes #20278 Signed-off-by: tommy <tommyskypromax@gmail.com>
This commit is contained in:
parent
8edc0338f3
commit
1cacfcd30f
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue