summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2020-07-05 23:59:45 +0000
committerDarren Tucker <dtucker@dtucker.net>2020-07-15 15:07:42 +1000
commit6d755706a0059eb9e2d63517f288b75cbc3b4701 (patch)
treeadb003b1adcea270f4480baa4ff83d495b3478f3 /ssh.c
parentb0c1e8384d5e136ebdf895d1434aea7dd8661a1c (diff)
upstream: some language improvements; ok markus
OpenBSD-Commit-ID: 939d787d571b4d5da50b3b721fd0b2ac236acaa8
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ssh.c b/ssh.c
index a767a1839..b13783d43 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh.c,v 1.530 2020/06/26 05:02:03 dtucker Exp $ */ 1/* $OpenBSD: ssh.c,v 1.531 2020/07/05 23:59:45 djm 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
@@ -137,11 +137,11 @@ int stdin_null_flag = 0;
137 137
138/* 138/*
139 * Flag indicating that the current process should be backgrounded and 139 * Flag indicating that the current process should be backgrounded and
140 * a new slave launched in the foreground for ControlPersist. 140 * a new mux-client launched in the foreground for ControlPersist.
141 */ 141 */
142int need_controlpersist_detach = 0; 142int need_controlpersist_detach = 0;
143 143
144/* Copies of flags for ControlPersist foreground slave */ 144/* Copies of flags for ControlPersist foreground mux-client */
145int ostdin_null_flag, ono_shell_flag, otty_flag, orequest_tty; 145int ostdin_null_flag, ono_shell_flag, otty_flag, orequest_tty;
146 146
147/* 147/*
@@ -1691,7 +1691,7 @@ control_persist_detach(void)
1691 /* Child: master process continues mainloop */ 1691 /* Child: master process continues mainloop */
1692 break; 1692 break;
1693 default: 1693 default:
1694 /* Parent: set up mux slave to connect to backgrounded master */ 1694 /* Parent: set up mux client to connect to backgrounded master */
1695 debug2("%s: background process is %ld", __func__, (long)pid); 1695 debug2("%s: background process is %ld", __func__, (long)pid);
1696 stdin_null_flag = ostdin_null_flag; 1696 stdin_null_flag = ostdin_null_flag;
1697 options.request_tty = orequest_tty; 1697 options.request_tty = orequest_tty;
@@ -2070,9 +2070,9 @@ ssh_session2(struct ssh *ssh, struct passwd *pw)
2070 /* 2070 /*
2071 * If we are in control persist mode and have a working mux listen 2071 * If we are in control persist mode and have a working mux listen
2072 * socket, then prepare to background ourselves and have a foreground 2072 * socket, then prepare to background ourselves and have a foreground
2073 * client attach as a control slave. 2073 * client attach as a control client.
2074 * NB. we must save copies of the flags that we override for 2074 * NB. we must save copies of the flags that we override for
2075 * the backgrounding, since we defer attachment of the slave until 2075 * the backgrounding, since we defer attachment of the client until
2076 * after the connection is fully established (in particular, 2076 * after the connection is fully established (in particular,
2077 * async rfwd replies have been received for ExitOnForwardFailure). 2077 * async rfwd replies have been received for ExitOnForwardFailure).
2078 */ 2078 */