Added sync() after logfile i/o to reduce risk of losing log entries after

e.g. crashes.
This commit is contained in:
Ben Gras 2005-07-11 13:19:29 +00:00
parent ed66b0ff02
commit 5c13385e40

View file

@ -98,6 +98,7 @@ main(int argc, char *argv[])
copy(klog_fd, logfp); copy(klog_fd, logfp);
} }
fflush(logfp); fflush(logfp);
sync();
} }
return 0; return 0;