Renamed system.use_daemon to system.daemon.

This commit is contained in:
rakshasa
2016-06-27 01:46:54 +09:00
parent 5a56fbd5d1
commit efc9097d62
3 changed files with 6 additions and 4 deletions
+4 -2
View File
@@ -190,8 +190,10 @@ main(int argc, char** argv) {
control = new Control;
srandom(cachedTime.usec() ^ (getpid() << 16) ^ getppid());
srand48(cachedTime.usec() ^ (getpid() << 16) ^ getppid());
unsigned int random_seed = cachedTime.seconds() ^ cachedTime.usec() ^ (getpid() << 16) ^ getppid();
srandom(random_seed);
srand48(random_seed);
SignalHandler::set_ignore(SIGPIPE);
SignalHandler::set_handler(SIGINT, std::bind(&Control::receive_normal_shutdown, control));