From 8ac18bf650f62eaa0e23d9a23db49f796965a39a Mon Sep 17 00:00:00 2001 From: Lai Jiangshan Date: Wed, 28 Sep 2016 12:17:04 +0800 Subject: [PATCH] remove the usage of EPOLLPRI partially revert 9a6738d8 Signed-off-by: Lai Jiangshan --- src/event.c | 4 +--- src/exec.c | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/event.c b/src/event.c index 53ddc7e..ea38ef0 100644 --- a/src/event.c +++ b/src/event.c @@ -138,9 +138,7 @@ int hyper_event_write(struct hyper_event *he, int efd) memmove(buf->data, buf->data + len, buf->get); if (buf->get == 0) { - hyper_modify_event(ctl.efd, he, he->flag & ~(EPOLLOUT| EPOLLPRI)); - } else if (!FULL(buf)) { - hyper_modify_event(ctl.efd, he, he->flag & ~EPOLLPRI); + hyper_modify_event(ctl.efd, he, he->flag & ~EPOLLOUT); } return 0; diff --git a/src/exec.c b/src/exec.c index be17344..68e1515 100644 --- a/src/exec.c +++ b/src/exec.c @@ -110,7 +110,6 @@ static int pts_loop(struct hyper_event *de, uint64_t seq, int efd, struct hyper_ struct hyper_buf *buf = &ctl.tty.wbuf; if (FULL(buf)) { - flag |= EPOLLPRI; goto out; } @@ -139,7 +138,6 @@ static int pts_loop(struct hyper_event *de, uint64_t seq, int efd, struct hyper_ } while (!FULL(buf)); if (FULL(buf)) { - flag |= EPOLLPRI; /* del & add event to move event to tail, this gives * other event a chance to write data to wbuf of tty. */ hyper_requeue_event(ctl.efd, de);