- make the apt/term.log output unbuffered (thanks to Matt Zimmerman)
#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>
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);
}
+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 ]