util: invoke sync() implicitly on freeze()
Suggested by Tom Gundersen.
This commit is contained in:
parent
fc84026de8
commit
c29597a104
2
TODO
2
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.
|
||||
|
||||
|
|
|
@ -3386,6 +3386,8 @@ int wait_for_terminate_and_warn(const char *name, pid_t pid) {
|
|||
}
|
||||
|
||||
void freeze(void) {
|
||||
sync();
|
||||
|
||||
for (;;)
|
||||
pause();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue