From: Simon Ruderich Date: Tue, 8 Mar 2011 02:17:14 +0000 (+0100) Subject: src/tlsproxy.c: Ignore SIGPIPEs. X-Git-Tag: 0.1~21 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=396fd6126020e409a21ed0d8bb327d6ee0211e04;p=tlsproxy%2Ftlsproxy.git src/tlsproxy.c: Ignore SIGPIPEs. --- 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;