comparison cli-chansession.c @ 109:2e9d1f29c50f

merge of 50be59810e462f9f44f55e421227d6aa0b31982b and 69b007796063cb5f042be7cca2d479e90db869c3
author Matt Johnston <matt@ucc.asn.au>
date Fri, 27 Aug 2004 14:39:01 +0000
parents 10f4d3319780
children 0cfba3034be5
comparison
equal deleted inserted replaced
108:10f4d3319780 109:2e9d1f29c50f
339 339
340 static int cli_initchansess(struct Channel *channel) { 340 static int cli_initchansess(struct Channel *channel) {
341 341
342 342
343 channel->infd = STDOUT_FILENO; 343 channel->infd = STDOUT_FILENO;
344 setnonblocking(STDOUT_FILENO);
345
344 channel->outfd = STDIN_FILENO; 346 channel->outfd = STDIN_FILENO;
347 setnonblocking(STDIN_FILENO);
348
345 channel->errfd = STDERR_FILENO; 349 channel->errfd = STDERR_FILENO;
350 setnonblocking(STDERR_FILENO);
351
346 channel->extrabuf = cbuf_new(RECV_MAXWINDOW); 352 channel->extrabuf = cbuf_new(RECV_MAXWINDOW);
347 353
348 if (cli_opts.wantpty) { 354 if (cli_opts.wantpty) {
349 send_chansess_pty_req(channel); 355 send_chansess_pty_req(channel);
350 } 356 }