search for: need_controlpersist_detach

Displaying 3 results from an estimated 3 matches for "need_controlpersist_detach".

2020 Mar 14
2
ssh -f and -O ControlPersist=yes, ControlMaster=yes leaves stderr open
...rom current master's ssh.c: ------------------------------------>snip<------------------------------------ static int ssh_session2(struct ssh *ssh, struct passwd *pw) { [...] if (options.control_persist && muxserver_sock != -1) { [...] if (!fork_after_authentication_flag) need_controlpersist_detach = 1; fork_after_authentication_flag = 1; } ------------------------------------>snip<------------------------------------ Note how need_controlpersist_detach is only set to 1 if fork_after_authentication_flag is not set (i.e., -f has not been passed). This probably makes sense to not fork...
2011 Oct 13
1
[PATCH] Fix control persist and stdio forward interaction
...the client process starts talking to the master process. It looks like the way ControlPersist is implemented, the process forks, with the child becoming the master process and the child making its connection through that. Thus, it seems like a reasonable fix to not call client_setup_stdio_fwd if need_controlpersist_detach is set, and just allow it to happen later. Does the attached patch look OK? Thanks, Ricky -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: not available URL: <http://lists.mindrot.org/piperma...
2011 Oct 16
4
[Bug 1943] New: [PATCH] ssh -W opens two connections when ControlPersist is enabled.
...e the client process starts talking to the master process. It looks like the way ControlPersist is implemented, the process forks, with the child becoming the master process and the child making its connection through that. This patch makes client_setup_stdio_fwd not get called the first time if need_controlpersist_detach is set, and lets it happen through the master process. -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.