mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 17:08:35 +02:00
main: detach from terminal session on failure
This commit is contained in:
parent
34178f4e30
commit
d279fec316
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue