diff options
author | 2008-02-25 06:20:57 +0000 | |
---|---|---|
committer | 2008-02-25 06:20:57 +0000 | |
commit | 69e47be129c6347588a5f517da018fadf102dd1d (patch) | |
tree | cd1744a00cf32a385b8d3f5fa6babcaf1a8b8a86 | |
parent | Correctly check that we have a complete rthdr before trying to do m_copydata() on it. (diff) | |
download | wireguard-openbsd-69e47be129c6347588a5f517da018fadf102dd1d.tar.xz wireguard-openbsd-69e47be129c6347588a5f517da018fadf102dd1d.zip |
Have cfmakeraw() also reset VMIN and VTIME to their default values;
ok kettenis miod
-rw-r--r-- | lib/libc/termios/cfmakeraw.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/termios/cfmakeraw.c b/lib/libc/termios/cfmakeraw.c index f0144fb8781..77e87b52632 100644 --- a/lib/libc/termios/cfmakeraw.c +++ b/lib/libc/termios/cfmakeraw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cfmakeraw.c,v 1.6 2005/08/05 13:03:00 espie Exp $ */ +/* $OpenBSD: cfmakeraw.c,v 1.7 2008/02/25 06:20:57 deraadt Exp $ */ /*- * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. @@ -42,5 +42,6 @@ cfmakeraw(struct termios *t) t->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); t->c_cflag &= ~(CSIZE|PARENB); t->c_cflag |= CS8; - /* XXX set MIN/TIME */ + t->c_cc[VMIN] = 1; + t->c_cc[VTIME] = 0; } |