util: invoke sync() implicitly on freeze()

Suggested by Tom Gundersen.
This commit is contained in:
Lennart Poettering
2011-01-01 19:50:32 +01:00
parent fc84026de8
commit c29597a104
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -3386,6 +3386,8 @@ int wait_for_terminate_and_warn(const char *name, pid_t pid) {
}
void freeze(void) {
sync();
for (;;)
pause();
}