From 396fd6126020e409a21ed0d8bb327d6ee0211e04 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 8 Mar 2011 03:17:14 +0100 Subject: [PATCH] src/tlsproxy.c: Ignore SIGPIPEs. --- src/tlsproxy.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.45.2