summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/channels.c b/channels.c
index aaa0ea579..04efd7287 100644
--- a/channels.c
+++ b/channels.c
@@ -39,7 +39,7 @@
39 */ 39 */
40 40
41#include "includes.h" 41#include "includes.h"
42RCSID("$OpenBSD: channels.c,v 1.138 2001/10/08 11:48:57 markus Exp $"); 42RCSID("$OpenBSD: channels.c,v 1.139 2001/10/09 21:59:41 markus Exp $");
43 43
44#include "ssh.h" 44#include "ssh.h"
45#include "ssh1.h" 45#include "ssh1.h"
@@ -359,22 +359,6 @@ channel_free_all(void)
359 channel_free(channels[i]); 359 channel_free(channels[i]);
360} 360}
361 361
362void
363channel_detach_all(void)
364{
365 int i;
366 Channel *c;
367
368 for (i = 0; i < channels_alloc; i++) {
369 c = channels[i];
370 if (c != NULL && c->detach_user != NULL) {
371 debug("channel_detach_all: channel %d", c->self);
372 c->detach_user(c->self, NULL);
373 c->detach_user = NULL;
374 }
375 }
376}
377
378/* 362/*
379 * Closes the sockets/fds of all channels. This is used to close extra file 363 * Closes the sockets/fds of all channels. This is used to close extra file
380 * descriptors after a fork. 364 * descriptors after a fork.