Skip to content

Conversation

@rantala
Copy link
Contributor

@rantala rantala commented Sep 20, 2017

Flush the libc buffers before calling fsync().

Otherwise the file content may not yet have been written to the kernel,
and fsync() will not help in ensuring that the file data is written to
disk.

Flush the libc buffers before calling fsync().

Otherwise the file content may not yet have been written to the kernel,
and fsync() will not help in ensuring that the file data is written to
disk.
@kdudka kdudka self-assigned this Sep 20, 2017
@kdudka
Copy link
Member

kdudka commented Sep 20, 2017

Looks good. Thanks for the patch!

@kdudka kdudka closed this in af01c0e Sep 20, 2017
kdudka added a commit that referenced this pull request Oct 13, 2017
- make distribution tarballs report logrotate version properly
  [RHBZ#1500264](https://bugzilla.redhat.com/1500264)
- make ```(un)compress work``` even if stdin and/or stdout are closed (#154)
- remove ```-s``` from ```DEFAULT_MAIL_COMMAND``` and improve its documenation (#152)
- uncompress logs before mailing them even if ```delaycompress``` is enabled (#151)
- handle unlink of a non-existing log file as a warning only (#144)
- include compile-time options in the output of ```logrotate --version``` (#145)
- make ```logrotate --version``` print to stdout instead of stderr (#145)
- flush write buffers before syncing state file (#148)
- specify (un)compress utility explicitly in tests (#137)
- enable running tests in parallel (#132)
- explicitly map root UID/GID to 0 on Cygwin (#133)
- add ```.dpkg-bak``` and ```.dpkg-del``` to default tabooext list (#134)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants