diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-04-10 21:32:44 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-04-10 21:32:44 +0800 |
commit | 5beb4d914eeb94b6d57dc295790f53e0c6949964 (patch) | |
tree | 571db414884a19826ab7c153ceea393220a38919 /cli-chansession.c | |
parent | 3b3e2d702c4f185d16a4100dd9345a8c0259df88 (diff) | |
download | dropbear-5beb4d914eeb94b6d57dc295790f53e0c6949964.tar.gz |
reset terminal modes before printing a message
Diffstat (limited to 'cli-chansession.c')
-rw-r--r-- | cli-chansession.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cli-chansession.c b/cli-chansession.c index 65d1f4f..17e0d53 100644 --- a/cli-chansession.c +++ b/cli-chansession.c @@ -82,14 +82,12 @@ out: /* If the main session goes, we close it up */ static void cli_closechansess(struct Channel *UNUSED(channel)) { + cli_tty_cleanup(); /* Restore tty modes etc */ /* This channel hasn't gone yet, so we have > 1 */ if (ses.chancount > 1) { dropbear_log(LOG_INFO, "Waiting for other channels to close..."); } - - cli_tty_cleanup(); /* Restore tty modes etc */ - } void cli_start_send_channel_request(struct Channel *channel, |