From 9be39772df3ff75ba80d2f7d8cff46677cddce19 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 25 Feb 2008 06:20:58 +0000 Subject: Have cfmakeraw() also reset VMIN and VTIME to their default values; ok kettenis miod --- lib/libc/termios/cfmakeraw.c | 5 +++-- 1 file 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; } -- cgit v1.2.3