mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-07 18:58:01 +02:00
[terminal] Don't stomp over original tty lock settings
We were repetedly saving over the original tty lock settings, causing the tty to stay locked after boot up.
This commit is contained in:
parent
2ea21378ef
commit
8c390bea97
1 changed files with 2 additions and 1 deletions
|
|
@ -188,7 +188,8 @@ ply_terminal_set_unbuffered_input (ply_terminal_t *terminal)
|
|||
if (tcsetattr (terminal->fd, TCSANOW, &term_attributes) != 0)
|
||||
return false;
|
||||
|
||||
if (ioctl (terminal->fd, TIOCGLCKTRMIOS, &locked_term_attributes) == 0)
|
||||
if (!terminal->original_locked_term_attributes_saved &&
|
||||
ioctl (terminal->fd, TIOCGLCKTRMIOS, &locked_term_attributes) == 0)
|
||||
{
|
||||
terminal->original_locked_term_attributes = locked_term_attributes;
|
||||
terminal->original_locked_term_attributes_saved = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue