* Fixed a corner-case where initial seeding would end up crashing rtorrent.

* Fixed a bad conditional that would result in write syscall being called with -1 for logging executing external commands.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1201 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2011-04-06 09:59:54 +00:00
parent a3b763aba8
commit 18a6c61956
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ ExecFile::execute(const char* file, char* const* argv, int flags) {
throw torrent::internal_error("ExecFile::execute(...) waitpid failed.");
// Check return value?
if (m_logFd) {
if (m_logFd != -1) {
if (status == 0)
write(m_logFd, "\n--- Success ---\n", sizeof("\n--- Success ---\n"));
else