diff options
author | Damien Miller <djm@mindrot.org> | 2012-06-20 21:44:56 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2012-06-20 21:44:56 +1000 |
commit | efc6fc995d894458493699e7e1becdb06edb3f83 (patch) | |
tree | d46f3d6c823cce44139fd94bfb616ff1498c0db4 /mux.c | |
parent | ba9ea3200dcb4ec61033e41b666f9d1fbfa35bf9 (diff) | |
download | openssh-git-efc6fc995d894458493699e7e1becdb06edb3f83.tar.gz |
- djm@cvs.openbsd.org 2011/12/02 00:41:56
[mux.c]
fix bz#1948: ssh -f doesn't fork for multiplexed connection.
ok dtucker@
Diffstat (limited to 'mux.c')
-rw-r--r-- | mux.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: mux.c,v 1.34 2012/01/07 21:11:36 djm Exp $ */ +/* $OpenBSD: mux.c,v 1.32 2011/12/02 00:41:56 djm Exp $ */ /* * Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org> * @@ -95,6 +95,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 { @@ -1800,6 +1801,8 @@ mux_client_request_session(int fd) if (tty_flag) enter_raw_mode(options.request_tty == REQUEST_TTY_FORCE); + if (fork_after_authentication_flag) + daemon(1, 1); /* * Stick around until the controlee closes the client_fd. * Before it does, it is expected to write an exit message. |