This commit is contained in:
Damien Miller 2002-02-13 16:43:52 +11:00
parent 8e3bdca1da
commit 89a1b9f908
1 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ restart:
/* Restore old terminal settings and signals. */
if (memcmp(&term, &oterm, sizeof(term)) != 0)
(void)tcsetattr(input, _T_FLUSH, &term);
(void)tcsetattr(input, _T_FLUSH, &oterm);
(void)sigaction(SIGINT, &saveint, NULL);
(void)sigaction(SIGHUP, &savehup, NULL);
(void)sigaction(SIGQUIT, &savequit, NULL);
@ -179,6 +179,6 @@ getpass(const char *prompt)
static void handler(int s)
{
fprintf(stderr, "COPPED A SGNAL\n");
signo = s;
}