From c1877e6bdecc88317a97c172f6bd390f249afef1 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 14 Apr 2013 20:54:25 +0200 Subject: [PATCH] Ignore SIGPIPE, so we do not die when a client shuts down at the wrong time. --- main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/main.cpp b/main.cpp index 64cab64..e8fa4e8 100644 --- a/main.cpp +++ b/main.cpp @@ -214,6 +214,7 @@ bool dry_run_config(const std::string &argv0, const std::string &config_filename int main(int argc, char **argv) { signal(SIGHUP, hup); + signal(SIGPIPE, SIG_IGN); // Parse options. int state_fd = -1; -- 2.39.2