diff options
author | Damien Miller <djm@mindrot.org> | 2001-10-10 15:14:37 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-10-10 15:14:37 +1000 |
commit | 52b77beb6560c409dfaaec6e61a8f2a2bf53d7d8 (patch) | |
tree | 361b15f34c99af10cafad3198d7727893c019b81 /channels.c | |
parent | c71f4e40b6d8cdf1c0d83381945841e66c127a95 (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.c | 18 |
1 files changed, 1 insertions, 17 deletions
@@ -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. |