summaryrefslogtreecommitdiff
path: root/src/core/crash-handler.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-03-10 09:33:05 +0100
committerLennart Poettering <lennart@poettering.net>2022-03-10 13:45:14 +0100
commit898c9a6f97affcc62b7873758449f3cb52bd3b98 (patch)
tree2f921269f6e37108aec257d87411419ea86ac361 /src/core/crash-handler.h
parent4fba096ba106a5629ae9a1ed895a744b974e56ca (diff)
downloadsystemd-898c9a6f97affcc62b7873758449f3cb52bd3b98.tar.gz
pid1: split out crash handler logic into its own .c/.h file
This stuff is sufficiently different from the rest of main.c, let's move it to its own .c/.h file, to make main.c a bit shorter. No code changes, just some refactoring.
Diffstat (limited to 'src/core/crash-handler.h')
-rw-r--r--src/core/crash-handler.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/crash-handler.h b/src/core/crash-handler.h
new file mode 100644
index 0000000000..dc143354d1
--- /dev/null
+++ b/src/core/crash-handler.h
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#pragma once
+
+#include "macro.h"
+
+_noreturn_ void freeze_or_exit_or_reboot(void);
+void install_crash_handler(void);