1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-29 03:19:54 +00:00

POLLER -> POLLERR

This commit is contained in:
Calvin Rose 2020-04-18 19:15:59 -04:00
parent 4a693222b4
commit 0d3c6abee8

View File

@ -418,7 +418,7 @@ static void janet_loop1(void) {
for (int i = 0; i < janet_vm_loop_count;) {
int revents = janet_vm_pollfds[i].revents;
janet_vm_pollfds[i].revents = 0;
if ((janet_vm_pollfds[i].events | POLLHUP | POLLER) & revents) {
if ((janet_vm_pollfds[i].events | POLLHUP | POLLERR) & revents) {
size_t delta = janet_loop_event(i);
i += (int) delta;
} else {