Bugfix: Ignore SIGPIPE (was causing bitcoin-seeder to exit abruptly)
This commit is contained in:
parent
7cccaba343
commit
8f15960242
1 changed files with 2 additions and 0 deletions
2
main.cpp
2
main.cpp
|
@ -1,6 +1,7 @@
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
#include <signal.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
|
@ -333,6 +334,7 @@ extern "C" void* ThreadSeeder(void*) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
|
signal(SIGPIPE, SIG_IGN);
|
||||||
setbuf(stdout, NULL);
|
setbuf(stdout, NULL);
|
||||||
CDnsSeedOpts opts;
|
CDnsSeedOpts opts;
|
||||||
opts.ParseCommandLine(argc, argv);
|
opts.ParseCommandLine(argc, argv);
|
||||||
|
|
Loading…
Add table
Reference in a new issue