From: Ray Strode Date: Wed, 9 Feb 2011 19:54:06 +0000 (-0500) Subject: main: detach from terminal session on failure X-Git-Tag: 0.8.4~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d279fec31610388bd9550bdbdbce5873a6ed1276;p=thirdparty%2Fplymouth.git main: detach from terminal session on failure --- diff --git a/src/main.c b/src/main.c index e15c3776..67a52c73 100644 --- a/src/main.c +++ b/src/main.c @@ -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;