pending: fix pending server resolve issue

This commit is contained in:
Nick Peng
2020-08-16 17:05:51 +08:00
parent c380bbe0e3
commit 69ba3f8789
3 changed files with 87 additions and 5 deletions

View File

@@ -439,6 +439,7 @@ int main(int argc, char *argv[])
goto errout;
}
signal(SIGPIPE, SIG_IGN);
if (dns_server_load_conf(config_file) != 0) {
fprintf(stderr, "load config failed.\n");
goto errout;
@@ -451,7 +452,6 @@ int main(int argc, char *argv[])
}
signal(SIGINT, _sig_exit);
signal(SIGPIPE, SIG_IGN);
atexit(_smartdns_exit);
return _smartdns_run();