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: /* Restore old terminal settings and signals. */ if (memcmp(&term, &oterm, sizeof(term)) != 0) { - while (tcsetattr(input, TCSANOW|TCSASOFT, &oterm) == -1 && + while (tcsetattr(input, _T_FLUSH, &oterm) == -1 && errno == EINTR) continue; }