summaryrefslogtreecommitdiff
path: root/src/shutdown.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/shutdown.c
parent4bbf01f38a5472e927515f7494037f1045d15f28 (diff)
util: unify implementations of freeze()
Diffstat (limited to 'src/shutdown.c')
-rw-r--r--src/shutdown.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/shutdown.c b/src/shutdown.c
index 023648c4cf..b78c74112a 100644
--- a/src/shutdown.c
+++ b/src/shutdown.c
@@ -40,11 +40,6 @@
#define FINALIZE_ATTEMPTS 50
#define FINALIZE_CRITICAL_ATTEMPTS 10
-_noreturn_ static void freeze(void) {
- for (;;)
- pause();
-}
-
static bool ignore_proc(pid_t pid) {
if (pid == 1)
return true;
@@ -341,5 +336,5 @@ int main(int argc, char *argv[]) {
r = -r;
log_error("Critical error while doing system shutdown: %s", strerror(r));
freeze();
- return 0;
+ return EXIT_FAILURE;
}