Added sync() after logfile i/o to reduce risk of losing log entries after
e.g. crashes.
This commit is contained in:
parent
ed66b0ff02
commit
5c13385e40
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue