comparison cli-chansession.c @ 107:d3eb1fa8484e

Nasty.
author Matt Johnston <matt@ucc.asn.au>
date Tue, 24 Aug 2004 18:12:18 +0000
parents 0247fbd9379d
children 10f4d3319780
comparison
equal deleted inserted replaced
106:e13f8a712a1c 107:d3eb1fa8484e
42 static void send_chansess_shell_req(struct Channel *channel); 42 static void send_chansess_shell_req(struct Channel *channel);
43 43
44 static void cli_tty_setup(); 44 static void cli_tty_setup();
45 void cli_tty_cleanup(); 45 void cli_tty_cleanup();
46 46
47 static const struct ChanType clichansess = { 47 const struct ChanType clichansess = {
48 0, /* sepfds */ 48 0, /* sepfds */
49 "session", /* name */ 49 "session", /* name */
50 cli_initchansess, /* inithandler */ 50 cli_initchansess, /* inithandler */
51 NULL, /* checkclosehandler */ 51 NULL, /* checkclosehandler */
52 NULL, /* reqhandler */ 52 NULL, /* reqhandler */
314 static int cli_initchansess(struct Channel *channel) { 314 static int cli_initchansess(struct Channel *channel) {
315 315
316 316
317 channel->infd = STDOUT_FILENO; 317 channel->infd = STDOUT_FILENO;
318 channel->outfd = STDIN_FILENO; 318 channel->outfd = STDIN_FILENO;
319 //channel->errfd = STDERR_FILENO; 319 channel->errfd = STDERR_FILENO;
320 channel->extrabuf = buf_new(RECV_MAXWINDOW);
320 321
321 if (cli_opts.wantpty) { 322 if (cli_opts.wantpty) {
322 send_chansess_pty_req(channel); 323 send_chansess_pty_req(channel);
323 } 324 }
324 325