mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-13 04:36:16 +00:00
Renamed system.use_daemon to system.daemon.
This commit is contained in:
@@ -266,7 +266,7 @@ initialize_command_local() {
|
|||||||
|
|
||||||
CMD2_ANY_VALUE_V ("system.umask.set", std::bind(&umask, std::placeholders::_2));
|
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 ("system.cwd", std::bind(&system_get_cwd));
|
||||||
CMD2_ANY_STRING ("system.cwd.set", std::bind(&system_set_cwd, std::placeholders::_2));
|
CMD2_ANY_STRING ("system.cwd.set", std::bind(&system_set_cwd, std::placeholders::_2));
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ Canvas::initialize() {
|
|||||||
if (m_isInitialized)
|
if (m_isInitialized)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_isDaemon = rpc::call_command_value("system.use_daemon");
|
m_isDaemon = rpc::call_command_value("system.daemon");
|
||||||
|
|
||||||
m_isInitialized = true;
|
m_isInitialized = true;
|
||||||
|
|
||||||
|
|||||||
+4
-2
@@ -190,8 +190,10 @@ main(int argc, char** argv) {
|
|||||||
|
|
||||||
control = new Control;
|
control = new Control;
|
||||||
|
|
||||||
srandom(cachedTime.usec() ^ (getpid() << 16) ^ getppid());
|
unsigned int random_seed = cachedTime.seconds() ^ cachedTime.usec() ^ (getpid() << 16) ^ getppid();
|
||||||
srand48(cachedTime.usec() ^ (getpid() << 16) ^ getppid());
|
|
||||||
|
srandom(random_seed);
|
||||||
|
srand48(random_seed);
|
||||||
|
|
||||||
SignalHandler::set_ignore(SIGPIPE);
|
SignalHandler::set_ignore(SIGPIPE);
|
||||||
SignalHandler::set_handler(SIGINT, std::bind(&Control::receive_normal_shutdown, control));
|
SignalHandler::set_handler(SIGINT, std::bind(&Control::receive_normal_shutdown, control));
|
||||||
|
|||||||
Reference in New Issue
Block a user