diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-01-01 19:50:32 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-01-01 19:50:32 +0100 |
commit | c29597a104b4a9dca601473aa2a8afe8b2b2face (patch) | |
tree | 5d343b29363fb11c1d823cbd3e43b376ec802f10 /src | |
parent | fc84026de8c4917bd1304d097771ad3a0bbc27a0 (diff) |
util: invoke sync() implicitly on freeze()
Suggested by Tom Gundersen.
Diffstat (limited to 'src')
-rw-r--r-- | src/util.c | 2 |
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(); } |