summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2005-05-24 16:42:00 +1000
committerDamien Miller <djm@mindrot.org>2005-05-24 16:42:00 +1000
commit101afbbb170bdbc81026b0385ab735e9f23a2835 (patch)
treebe000c858a926c255359ba3d5080e8827499f38c /openbsd-compat
parent308c8b147bb6a5598902870675c6c5d5975470aa (diff)
restore portable-specific tweak
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 }