diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-03-18 04:34:30 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2025-03-18 04:34:30 +0000 |
| commit | 1a5025d80bbae40981bd0a043a882439dc49dd8a (patch) | |
| tree | e4ede7a4864b5723df755033de21449da5fbd512 /src | |
| parent | 23c73cf04c4934a90e9721a1c9210847eaed4f69 (diff) | |
| download | s6-rc-1a5025d80bbae40981bd0a043a882439dc49dd8a.tar.gz | |
always fsync after cdb_make_finish in s6-rc-compile
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/s6-rc/s6-rc-compile.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/s6-rc/s6-rc-compile.c b/src/s6-rc/s6-rc-compile.c index 0247053..e9a1b76 100644 --- a/src/s6-rc/s6-rc-compile.c +++ b/src/s6-rc/s6-rc-compile.c @@ -1200,7 +1200,7 @@ static inline void write_resolve (char const *compiled, s6rc_db_t const *db, bun } } - if (!cdbmake_finish(&c) || fsync(fd) < 0) + if (!cdbmake_finish(&c)) { cleanup(compiled) ; strerr_diefu2sys(111, "write to ", fn) ; @@ -1510,7 +1510,6 @@ static inline void write_db (char const *compiled, s6rc_db_t const *db) if (buffer_putflush(&b, S6RC_DB_BANNER_END, S6RC_DB_BANNER_END_LEN) < 0) goto err ; - if (fsync(fd) < 0) goto err ; close(fd) ; return ; err: |
