comparison cli-session.c @ 1625:79eef94ccea9

Split ChanType closehandler() and cleanup() so that dbclient doesn't lose exit status messages
author Matt Johnston <matt@ucc.asn.au>
date Wed, 14 Nov 2018 22:57:56 +0800
parents f20038b513a5
children d5cdc60db08e
comparison
equal deleted inserted replaced
1624:1f3fb83b0524 1625:79eef94ccea9
354 cli_tty_cleanup(); 354 cli_tty_cleanup();
355 355
356 } 356 }
357 357
358 static void cli_finished() { 358 static void cli_finished() {
359 TRACE(("cli_finised()"))
359 360
360 session_cleanup(); 361 session_cleanup();
361 fprintf(stderr, "Connection to %s@%s:%s closed.\n", cli_opts.username, 362 fprintf(stderr, "Connection to %s@%s:%s closed.\n", cli_opts.username,
362 cli_opts.remotehost, cli_opts.remoteport); 363 cli_opts.remotehost, cli_opts.remoteport);
363 exit(cli_ses.retval); 364 exit(cli_ses.retval);