commit 8f78d60c5b30e4e882c2b2740f693d2f70036eb5 parent 8fd4887ddb018bf667b65a5683bd1cc73df7004c Author: Nico Golde <nion@suckless.org> Date: Tue, 30 Jan 2007 20:34:23 +0100 fixed fd exhausting Diffstat:
M | ii.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/ii.c b/ii.c @@ -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;