From 8f15960242548e8e551530f0ff5ea75f5c2f871e Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Thu, 21 Jun 2012 02:09:05 +0000 Subject: [PATCH] Bugfix: Ignore SIGPIPE (was causing bitcoin-seeder to exit abruptly) --- main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.cpp b/main.cpp index 202b3ed..8a639fd 100644 --- a/main.cpp +++ b/main.cpp @@ -1,6 +1,7 @@ #include #include +#include #include #include #include @@ -333,6 +334,7 @@ extern "C" void* ThreadSeeder(void*) { } int main(int argc, char **argv) { + signal(SIGPIPE, SIG_IGN); setbuf(stdout, NULL); CDnsSeedOpts opts; opts.ParseCommandLine(argc, argv);