util: invoke sync() implicitly on freeze()

Suggested by Tom Gundersen.
This commit is contained in:
Lennart Poettering 2011-01-01 19:50:32 +01:00
parent fc84026de8
commit c29597a104
2 changed files with 4 additions and 0 deletions

2
TODO
View File

@ -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.

View File

@ -3386,6 +3386,8 @@ int wait_for_terminate_and_warn(const char *name, pid_t pid) {
}
void freeze(void) {
sync();
for (;;)
pause();
}