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);