dhtnode: graceful signal handling in service and daemon modes

This commit is contained in:
Adrien Beraud committed 2017-06-29 10:20:31 +02:00
1 parent 673884a409
commit 42fa09a6fa
2 files changed
+26 -3

No files matched your search

+1 -2
View File
@@ -386,8 +386,7 @@ main(int argc, char **argv)
}
if (params.daemonize or params.service) {
while (true)
std::this_thread::sleep_for(std::chrono::seconds(30));
while (runner.wait());
} else {
cmd_loop(dht, params);
}