fixed fd exhausting

This commit is contained in:
Nico Golde 2007-01-30 20:34:23 +01:00
parent 8fd4887ddb
commit 8f78d60c5b

1
ii.c
View File

@ -401,6 +401,7 @@ static void handle_channels_input(Channel *c)
{
static char buf[PIPE_BUF];
if(read_line(c->fd, PIPE_BUF, buf) == -1) {
close(c->fd);
int fd = open_channel(c->name);
if(fd != -1)
c->fd = fd;