* apt-pkg/deb/dpkgpm.cc:
authorMichael Vogt <mvo@debian.org>
Fri, 9 Jul 2010 17:14:44 +0000 (19:14 +0200)
committerMichael Vogt <mvo@debian.org>
Fri, 9 Jul 2010 17:14:44 +0000 (19:14 +0200)
  - make the apt/term.log output unbuffered (thanks to Matt Zimmerman)

apt-pkg/deb/dpkgpm.cc
debian/changelog

index 9af7a07..6729106 100644 (file)
@@ -656,7 +656,7 @@ bool pkgDPkgPM::OpenLog()
       term_out = fopen(logfile_name.c_str(),"a");
       if (term_out == NULL)
         return _error->WarningE("OpenLog", _("Could not open file '%s'"), logfile_name.c_str());
-
+      setvbuf(term_out, NULL, _IONBF, 0);
       chmod(logfile_name.c_str(), 0600);
       fprintf(term_out, "\nLog started: %s\n", timestr);
    }
index dab703c..c4d18d7 100644 (file)
@@ -41,6 +41,10 @@ apt (0.7.26~exp8) UNRELEASED; urgency=low
     - make the used MMap moveable (and therefore dynamic resizeable) by
       applying (some) mad pointer magic (Closes: #195018)
 
+  [ Michael Vogt ]
+  * apt-pkg/deb/dpkgpm.cc:
+    - make the apt/term.log output unbuffered (thanks to Matt Zimmerman)
+
   [ Julian Andres Klode ]
   * methods/ftp.h:
     - Handle different logins on the same server (Closes: #586904).