Ignore SIGPIPE, so we do not die when a client shuts down at the wrong time.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 14 Apr 2013 18:54:25 +0000 (20:54 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 14 Apr 2013 18:54:25 +0000 (20:54 +0200)
main.cpp

index 64cab64..e8fa4e8 100644 (file)
--- 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;