static FILE* serialization = NULL;
-_noreturn_ static void freeze(void) {
- for (;;)
- pause();
-}
-
static void nop_handler(int sig) {
}
#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;
r = -r;
log_error("Critical error while doing system shutdown: %s", strerror(r));
freeze();
- return 0;
+ return EXIT_FAILURE;
}
}
+void freeze(void) {
+ for (;;)
+ pause();
+}
+
static const char *const ioprio_class_table[] = {
[IOPRIO_CLASS_NONE] = "none",
[IOPRIO_CLASS_RT] = "realtime",
int wait_for_terminate(pid_t pid, siginfo_t *status);
int wait_for_terminate_and_warn(const char *name, pid_t pid);
+_noreturn_ void freeze(void);
+
#define NULSTR_FOREACH(i, l) \
for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)