mirror of
https://github.com/clearlinux/hyperstart.git
synced 2026-08-18 20:05:48 +00:00
remove the usage of EPOLLPRI
partially revert 9a6738d8
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
This commit is contained in:
+1
-3
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user