chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util: unify implementations of freeze()
[elogind.git]
/
src
/
util.c
diff --git
a/src/util.c
b/src/util.c
index 98dbe28b54643cdb6de11f52e0c316d2f3529053..85ee09d1422ed33cca8bec09e8fb4774cbf9ed30 100644
(file)
--- a/
src/util.c
+++ b/
src/util.c
@@
-3308,6
+3308,11
@@
int wait_for_terminate_and_warn(const char *name, pid_t pid) {
}
+void freeze(void) {
+ for (;;)
+ pause();
+}
+
static const char *const ioprio_class_table[] = {
[IOPRIO_CLASS_NONE] = "none",
[IOPRIO_CLASS_RT] = "realtime",