chiark / gitweb /
util: unify implementations of freeze()
[elogind.git] / src / util.c
index 98dbe28b54643cdb6de11f52e0c316d2f3529053..85ee09d1422ed33cca8bec09e8fb4774cbf9ed30 100644 (file)
@@ -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",