Bugzilla – Attachment 2645 Details for
Bug 1948
ssh -f doesn't terminate when muxing connections.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
daemonise with when -f specified and not in ControlPersist mode
mux-f.diff (text/plain), 677 bytes, created by
Damien Miller
on 2015-06-05 14:39:25 AEST
(
hide
)
Description:
daemonise with when -f specified and not in ControlPersist mode
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2015-06-05 14:39:25 AEST
Size:
677 bytes
patch
obsolete
>diff --git a/mux.c b/mux.c >index cdc01bd..a6bef6d 100644 >--- a/mux.c >+++ b/mux.c >@@ -90,6 +90,7 @@ extern Buffer command; > extern volatile sig_atomic_t quit_pending; > extern char *stdio_forward_host; > extern int stdio_forward_port; >+extern int fork_after_authentication_flag; > > /* Context for session open confirmation callback */ > struct mux_session_confirm_ctx { >@@ -1893,6 +1894,8 @@ mux_client_request_session(int fd) > rawmode = tty_flag; > if (tty_flag) > enter_raw_mode(options.request_tty == REQUEST_TTY_FORCE); >+ else if (!options.control_persist && fork_after_authentication_flag) >+ daemon(1, 1); > > /* > * Stick around until the controlee closes the client_fd.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1948
:
2101
| 2645