]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
main: don't pause on crash
authorRay Strode <rstrode@redhat.com>
Mon, 15 Nov 2010 19:01:50 +0000 (14:01 -0500)
committerRay Strode <rstrode@redhat.com>
Mon, 15 Nov 2010 19:01:50 +0000 (14:01 -0500)
plymouthd would previously pause() when crashing if debug
mode was enabled so that it could be attached to with a debugger.

pausing indefinitely during boot up is often a bad idea though.

This commit changes it to sleep 30 seconds instead.

src/main.c

index e003d99784bad5d2f668e5e0a65092a3bc167ace..b6ee8780b727f60b047d6a254c19346c4c476d15 100644 (file)
@@ -1974,7 +1974,7 @@ on_crash (int signum)
     if (debug_buffer != NULL)
       {
         dump_debug_buffer_to_file ();
-        pause ();
+        sleep (30);
       }
 
     if (pid_file != NULL)