From: Steinar H. Gunderson Date: Sun, 14 Apr 2013 18:54:25 +0000 (+0200) Subject: Ignore SIGPIPE, so we do not die when a client shuts down at the wrong time. X-Git-Tag: 1.0.0~108 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=c1877e6bdecc88317a97c172f6bd390f249afef1 Ignore SIGPIPE, so we do not die when a client shuts down at the wrong time. --- 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;