Skip to content

Commit 747ea99

Browse files
authored
vminitd: sync(2) in server error path (#413)
1 parent 85a3544 commit 747ea99

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vminitd/Sources/vminitd/Application.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ struct Application {
121121
#endif
122122
} catch {
123123
log.error("vminitd boot error \(error)")
124+
125+
#if os(Linux)
126+
Musl.sync()
127+
#endif
128+
124129
exit(1)
125130
}
126131
}

0 commit comments

Comments
 (0)