Lines Matching refs:new_fd
309 int new_fd[3];
371 if ((new_fd[i] = mm_receive_fd(c->sock)) == -1) {
375 close(new_fd[j]);
393 new_fd[0], new_fd[1], new_fd[2]);
403 close(new_fd[0]);
404 close(new_fd[1]);
405 close(new_fd[2]);
430 if (cctx->want_tty && tcgetattr(new_fd[0], &cctx->tio) == -1)
434 if (!isatty(new_fd[0]))
435 set_nonblock(new_fd[0]);
436 if (!isatty(new_fd[1]))
437 set_nonblock(new_fd[1]);
438 if (!isatty(new_fd[2]))
439 set_nonblock(new_fd[2]);
449 new_fd[0], new_fd[1], new_fd[2], window, packetmax,
887 int new_fd[2];
905 if ((new_fd[i] = mm_receive_fd(c->sock)) == -1) {
909 close(new_fd[j]);
922 new_fd[0], new_fd[1]);
932 close(new_fd[0]);
933 close(new_fd[1]);
952 if (!isatty(new_fd[0]))
953 set_nonblock(new_fd[0]);
954 if (!isatty(new_fd[1]))
955 set_nonblock(new_fd[1]);
957 nc = channel_connect_stdio_fwd(chost, cport, new_fd[0], new_fd[1]);