mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
dhtnode: graceful signal handling in service and daemon modes
This commit is contained in:
1 parent
673884a409
commit
42fa09a6fa
2 files changed
+26
-3
No files matched your search
+1
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user