diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-02-25 06:20:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-02-25 06:20:58 +0000 |
commit | 9be39772df3ff75ba80d2f7d8cff46677cddce19 (patch) | |
tree | dba22427c528d46467a91f3bdd09fb2d5b6acd3c /lib | |
parent | 25c4be18eb07358865c2e617e6d0a9af86bb0ba4 (diff) |
Have cfmakeraw() also reset VMIN and VTIME to their default values;
ok kettenis miod
Diffstat (limited to 'lib')
-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; } |