]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
main: detach from terminal session on failure
authorRay Strode <rstrode@redhat.com>
Wed, 9 Feb 2011 19:54:06 +0000 (14:54 -0500)
committerRay Strode <rstrode@redhat.com>
Wed, 9 Feb 2011 20:07:14 +0000 (15:07 -0500)
src/main.c

index e15c3776b5672d0ed9b7519ccc8d15cea9e60063..67a52c733bcace6b7c85cac42cc4ce57f4126a06 100644 (file)
@@ -2142,6 +2142,12 @@ main (int    argc,
     {
       ply_trace ("could not log bootup: %m");
 
+      if (state.is_attached)
+        {
+          ply_trace ("detaching from session");
+          ply_terminal_session_detach (state.session);
+        }
+
       if (daemon_handle != NULL)
         ply_detach_daemon (daemon_handle, EX_UNAVAILABLE);
       return EX_UNAVAILABLE;