mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-13 05:32:31 +00:00
* Some commands were not using the new "log.tracker" name. Ticket #1888.
* Fixed crash on empty bitfield in 'd.bitfield'. * Fixes a file handle leak in the execute_capture functions. Patch by Josef Drexler. * Moved ThreadBase to ./src as ./src/utils caused linker problems due to core::PollManager::create_poll_manager(). git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1102 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -123,6 +123,8 @@ ExecFile::execute(const char* file, char* const* argv, int flags) {
|
||||
m_capture += std::string(buffer, length);
|
||||
} while (length > 0);
|
||||
|
||||
::close(pipeFd[0]);
|
||||
|
||||
if (m_logFd != -1) {
|
||||
write(m_logFd, "Captured output:\n", sizeof("Captured output:\n"));
|
||||
write(m_logFd, m_capture.data(), m_capture.length());
|
||||
|
||||
Reference in New Issue
Block a user