call hyper_ttyfd_handle() directly in hyper_ttyfd_read()

Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
This commit is contained in:
Lai Jiangshan
2016-09-21 17:08:43 +08:00
parent 2f2be98cff
commit bb5c2c5744
+1 -2
View File
@@ -1083,7 +1083,7 @@ static int hyper_ttyfd_read(struct hyper_event *he, int efd)
}
/* get and consume the whole data */
ret = he->ops->handle(he, len);
ret = hyper_ttyfd_handle(he, len);
buf->get = 0;
return ret == 0 ? 0 : -1;
@@ -1188,7 +1188,6 @@ static struct hyper_event_ops hyper_channel_ops = {
static struct hyper_event_ops hyper_ttyfd_ops = {
.read = hyper_ttyfd_read,
.write = hyper_event_write,
.handle = hyper_ttyfd_handle,
.rbuf_size = 4096,
.wbuf_size = 10240,
.len_offset = 8,