Lines Matching refs:close
254 close(sock);
465 close(pin[0]);
466 close(pin[1]);
472 close(pin[0]);
473 close(pin[1]);
474 close(pout[0]);
475 close(pout[1]);
492 close(inout[0]);
493 close(inout[1]);
505 close(pin[0]);
506 close(pin[1]);
507 close(pout[0]);
508 close(pout[1]);
509 close(perr[0]);
510 close(perr[1]);
512 close(inout[0]);
513 close(inout[1]);
514 close(err[0]);
515 close(err[1]);
534 * Redirect stdin. We close the parent side of the socket
537 close(pin[1]);
540 close(pin[0]);
543 close(pout[0]);
546 close(pout[1]);
549 close(perr[0]);
552 close(perr[1]);
559 close(inout[1]);
560 close(err[1]);
565 close(inout[0]);
568 close(err[0]);
603 /* We are the parent. Close the child sides of the pipes. */
604 close(pin[0]);
605 close(pout[1]);
606 close(perr[1]);
617 /* We are the parent. Close the child sides of the socket pairs. */
618 close(inout[0]);
619 close(err[0]);
662 close(ttyfd);
663 close(ptyfd);
669 close(ttyfd);
670 close(ptyfd);
671 close(fdout);
679 close(fdout);
680 close(ptymaster);
681 close(ttyfd);
682 close(ptyfd);
687 close(fdout);
688 close(ptymaster);
693 /* Close the master side of the pseudo tty. */
694 close(ptyfd);
707 /* Close the extra descriptor for the pseudo tty. */
708 close(ttyfd);
742 /* Parent. Close the slave side of the pseudo tty. */
743 close(ttyfd);
1583 close(packet_get_connection_in());
1585 close(packet_get_connection_in());
1586 close(packet_get_connection_out());
1589 * Close all descriptors related to channels. They will still remain
1592 /* XXX better use close-on-exec? -markus */
1596 * Close any extra file descriptors. Note that there may still be
1602 * Close any extra open file descriptors so that we don't have them
1693 /* we have to stash the hostname before we close our socket. */
1698 * Close the connection descriptors; note that this is the child, and
2315 * Close the server side of the socket pairs. We must do this after
2319 if (s->ptymaster != -1 && close(s->ptymaster) < 0)
2320 error("close(s->ptymaster/%d): %s",
2385 * close all of its siblings.
2445 * Adjust cleanup callback attachment to send close messages when
2447 * by session_close_by_channel when the childs close their fds.
2537 /* Close any X11 listeners associated with this session */