mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-07 10:48:09 +02:00
terminal-session: don't close ptmx unless it's opened
This prevents a scary close(-1) in straces.
This commit is contained in:
parent
41560df672
commit
bb92122a92
1 changed files with 2 additions and 1 deletions
|
|
@ -148,7 +148,8 @@ ply_terminal_session_free (ply_terminal_session_t *session)
|
|||
|
||||
ply_free_string_array (session->argv);
|
||||
|
||||
close (session->pseudoterminal_master_fd);
|
||||
if (session->pseudoterminal_master_fd >= 0)
|
||||
close (session->pseudoterminal_master_fd);
|
||||
free (session);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue