diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-11-06 11:15:39 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-11-06 11:23:51 +0100 |
commit | df30c8ca1fead2fbae8e6a3bbf70df11b2308c4a (patch) | |
tree | fb33d56c29feee2676d6c256b369e6b0442fce83 | |
parent | 69d6542848ed712a79dcba4965da4100e2804dd7 (diff) | |
download | ubox-df30c8ca1fead2fbae8e6a3bbf70df11b2308c4a.tar.gz |
logread: terminate after EOF
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r-- | log/logread.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/log/logread.c b/log/logread.c index edac1d9..994c88b 100644 --- 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); } |