channels.c (215116) | channels.c (221420) |
---|---|
1/* $OpenBSD: channels.c,v 1.309 2010/08/05 13:08:42 djm Exp $ */ | 1/* $OpenBSD: channels.c,v 1.310 2010/11/24 01:24:14 djm Exp $ */ |
2/* 3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 5 * All rights reserved 6 * This file contains functions for generic socket connection forwarding. 7 * There is also code for initiating connection forwarding for X11 connections, 8 * arbitrary tcp/ip connections, and the authentication agent connection. 9 * --- 358 unchanged lines hidden (view full) --- 368 } 369 return ret; 370} 371 372/* Close all channel fd/socket. */ 373static void 374channel_close_fds(Channel *c) 375{ | 2/* 3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 5 * All rights reserved 6 * This file contains functions for generic socket connection forwarding. 7 * There is also code for initiating connection forwarding for X11 connections, 8 * arbitrary tcp/ip connections, and the authentication agent connection. 9 * --- 358 unchanged lines hidden (view full) --- 368 } 369 return ret; 370} 371 372/* Close all channel fd/socket. */ 373static void 374channel_close_fds(Channel *c) 375{ |
376 debug3("channel %d: close_fds r %d w %d e %d", 377 c->self, c->rfd, c->wfd, c->efd); 378 | |
379 channel_close_fd(&c->sock); 380 channel_close_fd(&c->rfd); 381 channel_close_fd(&c->wfd); 382 channel_close_fd(&c->efd); 383} 384 385/* Free the channel and close its fd/socket. */ 386void --- 3259 unchanged lines hidden --- | 376 channel_close_fd(&c->sock); 377 channel_close_fd(&c->rfd); 378 channel_close_fd(&c->wfd); 379 channel_close_fd(&c->efd); 380} 381 382/* Free the channel and close its fd/socket. */ 383void --- 3259 unchanged lines hidden --- |