chiark / gitweb /
shutdown: drop redundant sync() invocation
[elogind.git] / src / util.c
index 60af4fe60d4dfce08e66a92632e30dbada029d3f..0d1116dc12676cc341b8ff4df9c54c047f14a3b4 100644 (file)
@@ -3386,6 +3386,8 @@ int wait_for_terminate_and_warn(const char *name, pid_t pid) {
 }
 
 void freeze(void) {
+        sync();
+
         for (;;)
                 pause();
 }