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
+1 -1
View File
@@ -266,7 +266,7 @@ initialize_command_local() {
CMD2_ANY_VALUE_V ("system.umask.set", std::bind(&umask, std::placeholders::_2));
CMD2_VAR_BOOL ("system.use_daemon", false);
CMD2_VAR_BOOL ("system.daemon", false);
CMD2_ANY ("system.cwd", std::bind(&system_get_cwd));
CMD2_ANY_STRING ("system.cwd.set", std::bind(&system_set_cwd, std::placeholders::_2));
+1 -1
View File
@@ -105,7 +105,7 @@ Canvas::initialize() {
if (m_isInitialized)
return;
m_isDaemon = rpc::call_command_value("system.use_daemon");
m_isDaemon = rpc::call_command_value("system.daemon");
m_isInitialized = true;
+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));