diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-07-08 09:08:57 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-07-08 09:08:57 +0200 |
commit | 60aa7b0d5bd08cc5d5a0eaa74600090c2cece17e (patch) | |
tree | 516bf16a8375ee61356f63a12da79859284a7ee8 | |
parent | 617244130193ecf6fb9a1c31a679449a98b40816 (diff) |
* apt-pkg/deb/dpkgpm.cc:
- make the apt/term.log output unbuffered (thanks to Matt Zimmerman)
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 3 | ||||
-rw-r--r-- | debian/changelog | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index 036f0e385..935cbb748 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -21,6 +21,7 @@ #include <stdlib.h> #include <fcntl.h> #include <sys/select.h> +#include <sys/stat.h> #include <sys/types.h> #include <sys/wait.h> #include <signal.h> @@ -593,7 +594,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); } diff --git a/debian/changelog b/debian/changelog index f1e0a97ed..2450b406a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +apt (0.7.25.3ubuntu11) UNRELEASED; urgency=low + + * apt-pkg/deb/dpkgpm.cc: + - make the apt/term.log output unbuffered (thanks to Matt Zimmerman) + + -- Michael Vogt <michael.vogt@ubuntu.com> Thu, 08 Jul 2010 09:08:37 +0200 + apt (0.7.25.3ubuntu10) maverick; urgency=low [ Michael Vogt ] |