summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.c b/main.c
index 02fd9ff..b17f053 100644
--- a/main.c
+++ b/main.c
@@ -98,7 +98,7 @@ retry:
if (errno == EINTR)
goto retry;
- return;
+ goto out;
}
proc->log_buf_ofs += len;
@@ -134,6 +134,10 @@ retry:
if (read_len == maxlen)
goto retry;
+
+out:
+ if (fd->eof)
+ uloop_fd_delete(fd);
}
static void