summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/channels.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-10-09 21:59:42 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-10-09 21:59:42 +0000
commit8cdd0aef6434e6e026b5a375168eeaf1b14919d2 (patch)
tree9889cd3c19b5a4e134070291aa2024259334c406 /usr.bin/ssh/channels.c
parent1bed9aad8b2cb1ea27af58b1807d78637109a17b (diff)
simplify session close: no more delayed session_close, no more blocking wait() calls.
Diffstat (limited to 'usr.bin/ssh/channels.c')
-rw-r--r--usr.bin/ssh/channels.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/usr.bin/ssh/channels.c b/usr.bin/ssh/channels.c
index fb69849a960..4f7f33b685d 100644
--- a/usr.bin/ssh/channels.c
+++ b/usr.bin/ssh/channels.c
@@ -39,7 +39,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: channels.c,v 1.138 2001/10/08 11:48:57 markus Exp $");
+RCSID("$OpenBSD: channels.c,v 1.139 2001/10/09 21:59:41 markus Exp $");
#include "ssh.h"
#include "ssh1.h"
@@ -359,22 +359,6 @@ channel_free_all(void)
channel_free(channels[i]);
}
-void
-channel_detach_all(void)
-{
- int i;
- Channel *c;
-
- for (i = 0; i < channels_alloc; i++) {
- c = channels[i];
- if (c != NULL && c->detach_user != NULL) {
- debug("channel_detach_all: channel %d", c->self);
- c->detach_user(c->self, NULL);
- c->detach_user = NULL;
- }
- }
-}
-
/*
* Closes the sockets/fds of all channels. This is used to close extra file
* descriptors after a fork.