summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-09-01 00:10:41 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-01 00:10:41 +0200
commiteed1d0e33d0a46fb562820518031e3f861f9dcdc (patch)
treed8afddaf0b0a786f000be5346138992c453981e7
parent7b2603e646fbd456756dd91fbc05ef85edc74aaf (diff)
util: leave locked terminal attributes untouched so that we don't interfere with plymouth
https://bugzilla.redhat.com/show_bug.cgi?id=628913
-rw-r--r--src/util.c6
1 files changed, 3 insertions, 3 deletions
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);