diff options
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/readpassphrase.c | 4 |
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 | ||
180 | static void handler(int s) | 180 | static void handler(int s) |
181 | { | 181 | { |
182 | 182 | fprintf(stderr, "COPPED A SGNAL\n"); | |
183 | signo = s; | 183 | signo = s; |
184 | } | 184 | } |