|
|
@@ -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);
|
|
|
}
|