POLLER -> POLLERR

This commit is contained in:
Calvin Rose 2020-04-18 19:15:59 -04:00
parent 4a693222b4
commit 0d3c6abee8
1 changed files with 1 additions and 1 deletions

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 {