* Fixed more redirected commands.

* Cleaned up the Command stack implementation.

* Added framework for object_storage class that will hold variables and user-defined command lists.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1162 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2010-04-11 14:19:27 +00:00
parent 856228da3d
commit 74bae32243
15 changed files with 276 additions and 140 deletions
+8 -1
View File
@@ -229,8 +229,15 @@ SCgiTask::receive_write(const char* buffer, uint32_t length) {
m_bufferSize = length + headerSize;
std::memcpy(m_buffer + headerSize, buffer, length);
event_write();
if (m_parent->log_fd() >= 0) {
// Clean up logging, this is just plain ugly...
// write(m_logFd, "\n---\n", sizeof("\n---\n"));
write(m_parent->log_fd(), m_buffer, m_bufferSize);
write(m_parent->log_fd(), "\n---\n", sizeof("\n---\n"));
}
event_write();
return true;
}