projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f976c5
)
fix infinite loop in logging when the logged process dies
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 16 Oct 2011 14:25:59 +0000
(16:25 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 16 Oct 2011 14:25:59 +0000
(16:25 +0200)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 02fd9ffa1b7b08135408b8fdf89c2c2fa9422085..b17f053bb3ea351853d2855d94a41b3728da684f 100644
(file)
--- 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