chiark / gitweb /
fileio: move fsync() logic into write_string_stream_ts()
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Sep 2017 18:59:39 +0000 (20:59 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 22 Sep 2017 18:59:39 +0000 (20:59 +0200)
commitf030d15c1e3b2279c7bcd71b817cdbcf56ca74de
treec83eb4eda9ea22acaac71d5740d1e7ed05d5a2e1
parent42d58088504bf7fef99f427bf863263c562ec4d3
fileio: move fsync() logic into write_string_stream_ts()

That way, write_string_stream_ts() becomes more powerful, and we can
remove duplicate code from  write_string_file_atomic() and
write_string_file_ts().
src/basic/fileio.c