From bb5c2c5744e3cab84d2da5e896e5efcb2243e52a Mon Sep 17 00:00:00 2001 From: Lai Jiangshan Date: Wed, 21 Sep 2016 17:08:43 +0800 Subject: [PATCH] call hyper_ttyfd_handle() directly in hyper_ttyfd_read() Signed-off-by: Lai Jiangshan --- src/init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/init.c b/src/init.c index b9d3746..d2457a6 100644 --- a/src/init.c +++ b/src/init.c @@ -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,