chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
shutdown: drop redundant sync() invocation
[elogind.git]
/
src
/
util.c
diff --git
a/src/util.c
b/src/util.c
index 60af4fe60d4dfce08e66a92632e30dbada029d3f..0d1116dc12676cc341b8ff4df9c54c047f14a3b4 100644
(file)
--- 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();
}