X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=src%2Ftlsproxy.c;h=2a35eaefc6b45e3d4e6b35a62c32d5a8407a8aac;hb=396fd6126020e409a21ed0d8bb327d6ee0211e04;hp=fae5c20f3657e96bb40dd158911e95f915b92daf;hpb=00c3bd4d3ce76d47440473aac3a850c2f837ebb8;p=tlsproxy%2Ftlsproxy.git diff --git a/src/tlsproxy.c b/src/tlsproxy.c index fae5c20..2a35eae 100644 --- a/src/tlsproxy.c +++ b/src/tlsproxy.c @@ -86,6 +86,9 @@ int main(int argc, char **argv) { action.sa_handler = sigint_handler; action.sa_flags = 0; sigaction(SIGINT, &action, NULL); + /* Ignore SIGPIPEs. */ + action.sa_handler = SIG_IGN; + sigaction(SIGPIPE, &action, NULL); /* Initialize ring buffer. */ ringbuffer_read = 0;