summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2020-04-24 02:19:40 +0000
committerDarren Tucker <dtucker@dtucker.net>2020-04-24 12:58:13 +1000
commit3beb7276e7a8aedd3d4a49f9c03b97f643448c92 (patch)
tree019012704d0ad5010044c56ea319ae0ebf4a51f4
parent8654e3561772f0656e7663a0bd6a1a8cb6d43300 (diff)
upstream: Remove leave_non_blocking() which is now dead code
because nothing sets in_non_blocking_mode any more. Patch from michaael.meeks at collabora.com, ok djm@ OpenBSD-Commit-ID: c403cefe97a5a99eca816e19cc849cdf926bd09c
-rw-r--r--clientloop.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/clientloop.c b/clientloop.c
index 8950f444b..da396c72a 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: clientloop.c,v 1.343 2020/04/03 02:40:32 djm Exp $ */ 1/* $OpenBSD: clientloop.c,v 1.344 2020/04/24 02:19:40 dtucker Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -149,9 +149,6 @@ extern char *forward_agent_sock_path;
149static volatile sig_atomic_t received_window_change_signal = 0; 149static volatile sig_atomic_t received_window_change_signal = 0;
150static volatile sig_atomic_t received_signal = 0; 150static volatile sig_atomic_t received_signal = 0;
151 151
152/* Flag indicating whether the user's terminal is in non-blocking mode. */
153static int in_non_blocking_mode = 0;
154
155/* Time when backgrounded control master using ControlPersist should exit */ 152/* Time when backgrounded control master using ControlPersist should exit */
156static time_t control_persist_exit_time = 0; 153static time_t control_persist_exit_time = 0;
157 154
@@ -196,17 +193,6 @@ static struct global_confirms global_confirms =
196 193
197void ssh_process_session2_setup(int, int, int, struct sshbuf *); 194void ssh_process_session2_setup(int, int, int, struct sshbuf *);
198 195
199/* Restores stdin to blocking mode. */
200
201static void
202leave_non_blocking(void)
203{
204 if (in_non_blocking_mode) {
205 unset_nonblock(fileno(stdin));
206 in_non_blocking_mode = 0;
207 }
208}
209
210/* 196/*
211 * Signal handler for the window change signal (SIGWINCH). This just sets a 197 * Signal handler for the window change signal (SIGWINCH). This just sets a
212 * flag indicating that the window has changed. 198 * flag indicating that the window has changed.
@@ -2458,7 +2444,6 @@ void
2458cleanup_exit(int i) 2444cleanup_exit(int i)
2459{ 2445{
2460 leave_raw_mode(options.request_tty == REQUEST_TTY_FORCE); 2446 leave_raw_mode(options.request_tty == REQUEST_TTY_FORCE);
2461 leave_non_blocking();
2462 if (options.control_path != NULL && muxserver_sock != -1) 2447 if (options.control_path != NULL && muxserver_sock != -1)
2463 unlink(options.control_path); 2448 unlink(options.control_path);
2464 ssh_kill_proxy_command(); 2449 ssh_kill_proxy_command();