[openssh-commits] [openssh] 02/02: upstream: Remove leave_non_blocking() which is now dead code
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Apr 24 12:59:27 AEST 2020
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 3beb7276e7a8aedd3d4a49f9c03b97f643448c92
Author: dtucker at openbsd.org <dtucker at openbsd.org>
Date: Fri Apr 24 02:19:40 2020 +0000
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
---
clientloop.c | 17 +----------------
1 file changed, 1 insertion(+), 16 deletions(-)
diff --git a/clientloop.c b/clientloop.c
index 8950f444..da396c72 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clientloop.c,v 1.343 2020/04/03 02:40:32 djm Exp $ */
+/* $OpenBSD: clientloop.c,v 1.344 2020/04/24 02:19:40 dtucker Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -149,9 +149,6 @@ extern char *forward_agent_sock_path;
static volatile sig_atomic_t received_window_change_signal = 0;
static volatile sig_atomic_t received_signal = 0;
-/* Flag indicating whether the user's terminal is in non-blocking mode. */
-static int in_non_blocking_mode = 0;
-
/* Time when backgrounded control master using ControlPersist should exit */
static time_t control_persist_exit_time = 0;
@@ -196,17 +193,6 @@ static struct global_confirms global_confirms =
void ssh_process_session2_setup(int, int, int, struct sshbuf *);
-/* Restores stdin to blocking mode. */
-
-static void
-leave_non_blocking(void)
-{
- if (in_non_blocking_mode) {
- unset_nonblock(fileno(stdin));
- in_non_blocking_mode = 0;
- }
-}
-
/*
* Signal handler for the window change signal (SIGWINCH). This just sets a
* flag indicating that the window has changed.
@@ -2458,7 +2444,6 @@ void
cleanup_exit(int i)
{
leave_raw_mode(options.request_tty == REQUEST_TTY_FORCE);
- leave_non_blocking();
if (options.control_path != NULL && muxserver_sock != -1)
unlink(options.control_path);
ssh_kill_proxy_command();
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list