From: Lennart Poettering Date: Sat, 1 Jan 2011 18:50:32 +0000 (+0100) Subject: util: invoke sync() implicitly on freeze() X-Git-Tag: v16~34 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c29597a104b4a9dca601473aa2a8afe8b2b2face;p=systemd util: invoke sync() implicitly on freeze() Suggested by Tom Gundersen. --- diff --git a/TODO b/TODO index 21f06a6f..e864634a 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 60af4fe6..0d1116dc 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(); }