summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-07 19:34:56 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-07 19:34:56 +0200
commit3c14d26c4746768f1dc63d4b7ac0278a7abe5da1 (patch)
treec62d817153ff5d92181800d348c75c36426353cd /src/util.c
parent4bbf01f38a5472e927515f7494037f1045d15f28 (diff)
util: unify implementations of freeze()
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 98dbe28b54..85ee09d142 100644
--- 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",