From c29597a104b4a9dca601473aa2a8afe8b2b2face Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 1 Jan 2011 19:50:32 +0100 Subject: [PATCH] util: invoke sync() implicitly on freeze() Suggested by Tom Gundersen. --- TODO | 2 ++ src/util.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/TODO b/TODO index 21f06a6f9..e864634ac 100644 --- a/TODO +++ b/TODO @@ -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 60af4fe60..0d1116dc1 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(); } -- 2.30.2