summaryrefslogtreecommitdiff
path: root/lib/sigpipe.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2023-03-12 23:55:09 +0100
committerDaniel Stenberg <daniel@haxx.se>2023-03-13 23:01:02 +0100
commitbc90308328afb8e1b99de2d518b1427516288c12 (patch)
tree251a2886b8224ae6408e62ca284f94b521c015d9 /lib/sigpipe.h
parent9f96537cc341801af46b12e7f0d8ff3623abc379 (diff)
downloadcurl-bc90308328afb8e1b99de2d518b1427516288c12.tar.gz
multi: make multi_perform ignore/unignore signals less often
For improved performance Reported-by: Jerome St-Louis Ref: #10743 Closes #10750
Diffstat (limited to 'lib/sigpipe.h')
-rw-r--r--lib/sigpipe.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/sigpipe.h b/lib/sigpipe.h
index 14ab25b67..48761ad0f 100644
--- a/lib/sigpipe.h
+++ b/lib/sigpipe.h
@@ -50,7 +50,6 @@ static void sigpipe_ignore(struct Curl_easy *data,
if(!data->set.no_signal) {
struct sigaction action;
/* first, extract the existing situation */
- memset(&ig->old_pipe_act, 0, sizeof(struct sigaction));
sigaction(SIGPIPE, NULL, &ig->old_pipe_act);
action = ig->old_pipe_act;
/* ignore this signal */