Browse Source

Merge pull request #4 from luke-jr/bugfix_sigpipe

Bugfix: Ignore SIGPIPE (was causing bitcoin-seeder to exit abruptly)
pull/1/head
Pieter Wuille 13 years ago
parent
commit
9e238be677
  1. 2
      main.cpp

2
main.cpp

@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
#include <algorithm>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
@ -341,6 +342,7 @@ extern "C" void* ThreadSeeder(void*) { @@ -341,6 +342,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);

Loading…
Cancel
Save