]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
main: use _exit() rather than exit() in code potentially caled from signal handler 12000/head
authorLennart Poettering <lennart@poettering.net>
Thu, 14 Mar 2019 12:14:47 +0000 (13:14 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 14 Mar 2019 12:25:52 +0000 (13:25 +0100)
src/core/main.c

index c0fa33bab42aa971992f7df50a6134781eb4cb64..981513bbc3b74acadbe5f31aace01e4c353bee6f 100644 (file)
@@ -138,11 +138,11 @@ static EmergencyAction arg_cad_burst_action = EMERGENCY_ACTION_REBOOT_FORCE;
 
 _noreturn_ static void freeze_or_exit_or_reboot(void) {
 
-        /* If we are running in a contianer, let's prefer exiting, after all we can propagate an exit code to the
-         * container manager, and thus inform it that something went wrong. */
+        /* If we are running in a container, let's prefer exiting, after all we can propagate an exit code to
+         * the container manager, and thus inform it that something went wrong. */
         if (detect_container() > 0) {
                 log_emergency("Exiting PID 1...");
-                exit(EXIT_EXCEPTION);
+                _exit(EXIT_EXCEPTION);
         }
 
         if (arg_crash_reboot) {