View | Details | Raw Unified | Return to bug 950 | Differences between
and this patch

Collapse All | Expand All

(-)openssh-3.8.1p1/openbsd-compat/readpassphrase.c.ttysanity (-2 / +6 lines)
Lines 137-144 Link Here
137
		(void)write(output, "\n", 1);
137
		(void)write(output, "\n", 1);
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
		(void)tcsetattr(input, _T_FLUSH, &oterm);
141
		int r;
142
		do
143
			r = tcsetattr(input, _T_FLUSH, &oterm);
144
		while (r == -1 && errno == EINTR);
145
	}
142
	(void)sigaction(SIGALRM, &savealrm, NULL);
146
	(void)sigaction(SIGALRM, &savealrm, NULL);
143
	(void)sigaction(SIGHUP, &savehup, NULL);
147
	(void)sigaction(SIGHUP, &savehup, NULL);
144
	(void)sigaction(SIGINT, &saveint, NULL);
148
	(void)sigaction(SIGINT, &saveint, NULL);

Return to bug 950