From 40e464422d5a75fb3aa86cb170bddf04a57812f4 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 7 Sep 2019 14:30:02 -0400 Subject: Ignore SIGPIPE in relay Allows restarting consumers safely. --- bin/relay.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/relay.c b/bin/relay.c index d54f7245..50bafd49 100644 --- a/bin/relay.c +++ b/bin/relay.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -104,6 +105,7 @@ int main(int argc, char *argv[]) { const char *chan = argv[4]; setlinebuf(stdout); + signal(SIGPIPE, SIG_IGN); struct tls_config *config = tls_config_new(); if (!config) errx(EX_SOFTWARE, "tls_config_new"); -- cgit 1.4.1