version 1.138, 2001/10/08 11:48:57 |
version 1.139, 2001/10/09 21:59:41 |
|
|
channel_free(channels[i]); |
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 |
* Closes the sockets/fds of all channels. This is used to close extra file |
* descriptors after a fork. |
* descriptors after a fork. |