summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-03-27 16:44:21 +1100
committerDarren Tucker <dtucker@zip.com.au>2004-03-27 16:44:21 +1100
commitb385059346a6011fab3bc293a82636e391bb03cc (patch)
treea71f7d84484888fd0834fb1cdaafc1d5bff2fc84 /session.c
parent154e8b82ef2f28438c7978a9c2d3f9a1fe0cfd65 (diff)
- (dtucker) [session.c] Bug #817: Clear loginmsg after fork to prevent
duplicate login messages for mutli-session logins. ok djm@
Diffstat (limited to 'session.c')
-rw-r--r--session.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/session.c b/session.c
index af2e71992..6ab3484e2 100644
--- a/session.c
+++ b/session.c
@@ -492,6 +492,13 @@ do_exec_no_pty(Session *s, const char *command)
492 close(err[0]); 492 close(err[0]);
493 493
494 /* 494 /*
495 * Clear loginmsg, since it's the child's responsibility to display
496 * it to the user, otherwise multiple sessions may accumulate
497 * multiple copies of the login messages.
498 */
499 buffer_clear(&loginmsg);
500
501 /*
495 * Enter the interactive session. Note: server_loop must be able to 502 * Enter the interactive session. Note: server_loop must be able to
496 * handle the case that fdin and fdout are the same. 503 * handle the case that fdin and fdout are the same.
497 */ 504 */