]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
crash-handler: Drop 10s sleep before we spawn the crash shell 33959/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 7 Aug 2024 18:48:09 +0000 (20:48 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 7 Aug 2024 19:26:53 +0000 (21:26 +0200)
It pointlessly delays getting to the crash shell so let's drop the
10s sleep.

man/systemd.xml
src/core/crash-handler.c

index af3d57b65787c781a77c7b5957ed46cc5433f935..58e76eecb2770592117e0a16527176e2a99c7fb3 100644 (file)
 
         <listitem><para>Takes a boolean argument or enables the option if specified
         without an argument. If enabled, the system manager (PID 1) spawns a shell
-        when it crashes, after a 10s delay. Otherwise, no shell is spawned. Defaults
-        to disabled, for security reasons, as the shell is not protected by password
-        authentication.</para>
+        when it crashes. Otherwise, no shell is spawned. Defaults to disabled, for
+        security reasons, as the shell is not protected by password authentication.</para>
 
         <xi:include href="version-info.xml" xpointer="v233"/></listitem>
       </varlistentry>
index 26e59b92d25996c20845cc2a5be59a8e8690e9a6..a9425c07909f78e6895347baedc3a54aff1e1fb6 100644 (file)
@@ -155,9 +155,6 @@ _noreturn_ static void crash(int sig, siginfo_t *siginfo, void *context) {
         (void) sigaction(SIGCHLD, &sa, NULL);
 
         if (arg_crash_shell) {
-                log_notice("Executing crash shell in 10s...");
-                (void) sleep(10);
-
                 pid = raw_clone(SIGCHLD);
                 if (pid < 0)
                         log_struct_errno(LOG_EMERG, errno,