15 lines
465 B
Plaintext
15 lines
465 B
Plaintext
$OpenBSD: patch-ii_c,v 1.1 2009/03/26 17:38:26 naddy Exp $
|
|
--- ii.c.orig Thu Mar 26 11:22:40 2009
|
|
+++ ii.c Thu Mar 26 11:23:00 2009
|
|
@@ -394,8 +394,9 @@ static int read_line(int fd, size_t res_len, char *buf
|
|
static void handle_channels_input(Channel *c) {
|
|
static char buf[PIPE_BUF];
|
|
if(read_line(c->fd, PIPE_BUF, buf) == -1) {
|
|
+ int fd;
|
|
close(c->fd);
|
|
- int fd = open_channel(c->name);
|
|
+ fd = open_channel(c->name);
|
|
if(fd != -1)
|
|
c->fd = fd;
|
|
else
|