X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubox.git;a=blobdiff_plain;f=log%2Flogread.c;fp=log%2Flogread.c;h=994c88beaa091319dd031c72e1ce51e599c94709;hp=edac1d9855b8cfe2c5708e3479dd9af27b860856;hb=df30c8ca1fead2fbae8e6a3bbf70df11b2308c4a;hpb=69d6542848ed712a79dcba4965da4100e2804dd7 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); }