summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-10-10 15:14:37 +1000
committerDamien Miller <djm@mindrot.org>2001-10-10 15:14:37 +1000
commit52b77beb6560c409dfaaec6e61a8f2a2bf53d7d8 (patch)
tree361b15f34c99af10cafad3198d7727893c019b81 /channels.c
parentc71f4e40b6d8cdf1c0d83381945841e66c127a95 (diff)
- markus@cvs.openbsd.org 2001/10/09 21:59:41
[channels.c channels.h serverloop.c session.c session.h] simplify session close: no more delayed session_close, no more blocking wait() calls.
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.