* Threaded XMLRPC support. Sponsored by Xirvik.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1123 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2010-01-25 13:14:09 +00:00
parent 83ea813245
commit 588f9e80c7
12 changed files with 103 additions and 63 deletions
+5 -5
View File
@@ -67,10 +67,10 @@ apply_log(int logType, const torrent::Object& rawArgs) {
switch (logType) {
case 0: ::close(rpc::execFile.log_fd()); rpc::execFile.set_log_fd(-1); break;
case 1:
if (control->scgi()) {
::close(control->scgi()->log_fd());
control->scgi()->set_log_fd(-1);
}
// if (control->scgi()) {
// ::close(control->scgi()->log_fd());
// control->scgi()->set_log_fd(-1);
// }
break;
default: break;
}
@@ -84,7 +84,7 @@ apply_log(int logType, const torrent::Object& rawArgs) {
switch (logType) {
case 0: rpc::execFile.set_log_fd(logFd); break;
case 1: if (control->scgi()) control->scgi()->set_log_fd(logFd); break;
// case 1: if (control->scgi()) control->scgi()->set_log_fd(logFd); break;
default: break;
}