summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/dpkgpm.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2010-07-09 19:14:44 +0200
committerMichael Vogt <mvo@debian.org>2010-07-09 19:14:44 +0200
commit115ba31b90e0d6643670d7d079f9f27b0e05f1c2 (patch)
tree2d15582e842e80cc2566c926f1f839688e83b83b /apt-pkg/deb/dpkgpm.cc
parent358f10d9d47a88cbf0568f042caccfef8678cbc8 (diff)
parent24baab5c477bf1e57a0b169a7bac1d2e9ab0c974 (diff)
* apt-pkg/deb/dpkgpm.cc:
- make the apt/term.log output unbuffered (thanks to Matt Zimmerman)
Diffstat (limited to 'apt-pkg/deb/dpkgpm.cc')
-rw-r--r--apt-pkg/deb/dpkgpm.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc
index 9af7a0792..67291063c 100644
--- a/apt-pkg/deb/dpkgpm.cc
+++ b/apt-pkg/deb/dpkgpm.cc
@@ -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);
}