projects
/
project
/
ubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69d6542
)
logread: terminate after EOF
author
Felix Fietkau
<nbd@nbd.name>
Mon, 6 Nov 2017 10:15:39 +0000
(11:15 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Mon, 6 Nov 2017 10:23:51 +0000
(11:23 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
log/logread.c
patch
|
blob
|
history
diff --git
a/log/logread.c
b/log/logread.c
index edac1d9855b8cfe2c5708e3479dd9af27b860856..994c88beaa091319dd031c72e1ce51e599c94709 100644
(file)
--- a/
log/logread.c
+++ b/
log/logread.c
@@
-240,11
+240,17
@@
static void logread_fd_data_cb(struct ustream *s, int bytes)
uloop_end();
}
+static void logread_fd_state_cb(struct ustream *s)
+{
+ uloop_end();
+}
+
static void logread_fd_cb(struct ubus_request *req, int fd)
{
static struct ustream_fd test_fd;
test_fd.stream.notify_read = logread_fd_data_cb;
+ test_fd.stream.notify_state = logread_fd_state_cb;
ustream_fd_init(&test_fd, fd);
}