X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Futil.c;h=0cd1fd30df49f7f0117aad847f6b55cb6b2f4d57;hp=f982586cee9b1d2c1939e8b7f8d4ecd13a3e5e81;hb=e082d6c8d80f3f06d72ae838ee4a1213f108a5e4;hpb=9ed95f433630f11c54e852f2826e9d68efff81f0 diff --git a/src/util.c b/src/util.c index f982586ce..0cd1fd30d 100644 --- a/src/util.c +++ b/src/util.c @@ -1917,9 +1917,9 @@ int reset_terminal(int fd) { assert(fd >= 0); - /* First, unlock termios */ - zero(termios); - ioctl(fd, TIOCSLCKTRMIOS, &termios); + /* We leave locked terminal attributes untouched, so that + * Plymouth may set whatever it wants to set, and we don't + * interfere with that. */ /* Disable exclusive mode, just in case */ ioctl(fd, TIOCNXCL);