summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-01-01 19:50:32 +0100
committerLennart Poettering <lennart@poettering.net>2011-01-01 19:50:32 +0100
commitc29597a104b4a9dca601473aa2a8afe8b2b2face (patch)
tree5d343b29363fb11c1d823cbd3e43b376ec802f10 /src
parentfc84026de8c4917bd1304d097771ad3a0bbc27a0 (diff)
util: invoke sync() implicitly on freeze()
Suggested by Tom Gundersen.
Diffstat (limited to 'src')
-rw-r--r--src/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 60af4fe60d..0d1116dc12 100644
--- a/src/util.c
+++ b/src/util.c
@@ -3386,6 +3386,8 @@ int wait_for_terminate_and_warn(const char *name, pid_t pid) {
}
void freeze(void) {
+ sync();
+
for (;;)
pause();
}