Merge branch 'master' into xirvik

This commit is contained in:
rakshasa
2012-03-21 00:09:58 +09:00
3 changed files with 6 additions and 3 deletions
+2
View File
@@ -1,5 +1,7 @@
AC_INIT(rtorrent, 0.9.1, jaris@ifi.uio.no)
AC_DEFINE(API_VERSION, 1, api version)
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
AM_PATH_CPPUNIT(1.9.6)
+1
View File
@@ -328,6 +328,7 @@ initialize_command_local() {
CMD2_ANY ("system.hostname", std::bind(&system_hostname));
CMD2_ANY ("system.pid", std::bind(&getpid));
CMD2_VAR_C_STRING("system.api_version", (int64_t)API_VERSION);
CMD2_VAR_C_STRING("system.client_version", PACKAGE_VERSION);
CMD2_VAR_C_STRING("system.library_version", torrent::version());
CMD2_VAR_VALUE ("system.file.allocate", 0);
+3 -3
View File
@@ -188,9 +188,6 @@ main(int argc, char** argv) {
control = new Control;
worker_thread = new ThreadWorker();
worker_thread->init_thread();
srandom(cachedTime.usec());
srand48(cachedTime.usec());
@@ -217,6 +214,9 @@ main(int argc, char** argv) {
torrent::main_thread()->slot_do_work() = tr1::bind(&client_perform);
torrent::main_thread()->slot_next_timeout() = tr1::bind(&client_next_timeout, control);
worker_thread = new ThreadWorker();
worker_thread->init_thread();
// Initialize option handlers after libtorrent to ensure
// torrent::ConnectionManager* are valid etc.
initialize_commands();