remove the usage of EPOLLPRI

partially revert 9a6738d8

Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
This commit is contained in:
Lai Jiangshan
2016-09-28 12:17:04 +08:00
parent d63f716523
commit 8ac18bf650
2 changed files with 1 additions and 5 deletions
+1 -3
View File
@@ -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;
-2
View File
@@ -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);