summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-12-06 07:04:18 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-12-06 07:04:18 +0000
commit47f7f8348e68c06d7b88d85f4fd49987271c463c (patch)
tree0618e6de670019806a7eb4bd7fb9c07103a768ab /lib
parent79367b55dea5fac78852e96389c532c95e14a873 (diff)
Use TCSAFLUSH not TCSANOW. I was only using TCSANOW during debugging...
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/readpassphrase.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/gen/readpassphrase.c b/lib/libc/gen/readpassphrase.c
index a8ca0875fa0..515a37ad965 100644
--- a/lib/libc/gen/readpassphrase.c
+++ b/lib/libc/gen/readpassphrase.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readpassphrase.c,v 1.8 2001/12/06 05:20:50 millert Exp $ */
+/* $OpenBSD: readpassphrase.c,v 1.9 2001/12/06 07:04:17 millert Exp $ */
/*
* Copyright (c) 2000 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static const char rcsid[] = "$OpenBSD: readpassphrase.c,v 1.8 2001/12/06 05:20:50 millert Exp $";
+static const char rcsid[] = "$OpenBSD: readpassphrase.c,v 1.9 2001/12/06 07:04:17 millert Exp $";
#endif /* LIBC_SCCS and not lint */
#include <ctype.h>
@@ -159,7 +159,7 @@ static void handler(int signo)
/* Restore tty modes */
if (memcmp(&term, &oterm, sizeof(term)) != 0)
- (void)tcsetattr(input, TCSANOW|TCSASOFT, &oterm);
+ (void)tcsetattr(input, TCSAFLUSH|TCSASOFT, &oterm);
/*
* Save old handler and set to original value.
@@ -193,7 +193,7 @@ static void handler(int signo)
/* Put tty modes back */
if (memcmp(&term, &oterm, sizeof(term)) != 0)
- (void)tcsetattr(input, TCSANOW|TCSASOFT, &term);
+ (void)tcsetattr(input, TCSAFLUSH|TCSASOFT, &term);
errno = save_errno;
}