Allow rtorrent to run as a daemon, slightly modified version of the PR provided by sallyswiss

This commit is contained in:
zp
2016-06-19 02:06:30 -05:00
parent 9abcea84c7
commit c01709fa27
4 changed files with 99 additions and 70 deletions
+2
View File
@@ -265,6 +265,8 @@ initialize_command_local() {
CMD2_ANY ("system.time_usec", std::bind(&rak::timer::current_usec));
CMD2_ANY_VALUE_V ("system.umask.set", std::bind(&umask, std::placeholders::_2));
CMD2_VAR_BOOL ("system.use_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));