]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/service.c
shutdown: readd explicit sync() when shutting down
authorLennart Poettering <lennart@poettering.net>
Fri, 16 Nov 2012 00:30:29 +0000 (01:30 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 16 Nov 2012 00:35:11 +0000 (01:35 +0100)
commit0049f05a8bb82c3e084bacc5945596761d706c55
treed8aa0e8c916ec23c698a64e081a282fbe25a6502
parentf553b3b1074151200187df916427a1468186435e
shutdown: readd explicit sync() when shutting down

As it turns out reboot() doesn't actually imply a file system sync, but
only a disk sync. Accordingly, readd explicit sync() invocations
immediately before we invoke reboot().

This is much less dramatic than it might sounds as we umount all
disks/read-only remount them anyway before going down.
src/core/service.c
src/core/shutdown.c