summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openbsd-compat/readpassphrase.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/readpassphrase.c b/openbsd-compat/readpassphrase.c
index 4e63b6189..4d25eadbb 100644
--- a/openbsd-compat/readpassphrase.c
+++ b/openbsd-compat/readpassphrase.c
@@ -136,7 +136,7 @@ restart:
136 136
137 /* Restore old terminal settings and signals. */ 137 /* Restore old terminal settings and signals. */
138 if (memcmp(&term, &oterm, sizeof(term)) != 0) 138 if (memcmp(&term, &oterm, sizeof(term)) != 0)
139 (void)tcsetattr(input, _T_FLUSH, &term); 139 (void)tcsetattr(input, _T_FLUSH, &oterm);
140 (void)sigaction(SIGINT, &saveint, NULL); 140 (void)sigaction(SIGINT, &saveint, NULL);
141 (void)sigaction(SIGHUP, &savehup, NULL); 141 (void)sigaction(SIGHUP, &savehup, NULL);
142 (void)sigaction(SIGQUIT, &savequit, NULL); 142 (void)sigaction(SIGQUIT, &savequit, NULL);
@@ -179,6 +179,6 @@ getpass(const char *prompt)
179 179
180static void handler(int s) 180static void handler(int s)
181{ 181{
182 182fprintf(stderr, "COPPED A SGNAL\n");
183 signo = s; 183 signo = s;
184} 184}