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 | |
parent | fc84026de8c4917bd1304d097771ad3a0bbc27a0 (diff) |
util: invoke sync() implicitly on freeze()
Suggested by Tom Gundersen.
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | src/util.c | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -1,3 +1,5 @@ +* excluse java hsp files by default https://bugzilla.redhat.com/show_bug.cgi?id=527425 + * drop IN_ATTRIB from inotify watches for .path units where possible to avoid lots of wakeups due to /dev changing when we watch a subdir of /dev. 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(); } |