util: invoke sync() implicitly on freeze()
Suggested by Tom Gundersen.
This commit is contained in:
@@ -3386,6 +3386,8 @@ int wait_for_terminate_and_warn(const char *name, pid_t pid) {
|
||||
}
|
||||
|
||||
void freeze(void) {
|
||||
sync();
|
||||
|
||||
for (;;)
|
||||
pause();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user