summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/readpassphrase.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/readpassphrase.c b/openbsd-compat/readpassphrase.c
index 5138b4034..eb060bdbf 100644
--- a/openbsd-compat/readpassphrase.c
+++ b/openbsd-compat/readpassphrase.c
@@ -138,7 +138,7 @@ restart:
138 138
139 /* Restore old terminal settings and signals. */ 139 /* Restore old terminal settings and signals. */
140 if (memcmp(&term, &oterm, sizeof(term)) != 0) { 140 if (memcmp(&term, &oterm, sizeof(term)) != 0) {
141 while (tcsetattr(input, TCSANOW|TCSASOFT, &oterm) == -1 && 141 while (tcsetattr(input, _T_FLUSH, &oterm) == -1 &&
142 errno == EINTR) 142 errno == EINTR)
143 continue; 143 continue;
144 } 144 }