diff --git a/src/core/ev.c b/src/core/ev.c index c4ed07ec..d62f1db2 100644 --- a/src/core/ev.c +++ b/src/core/ev.c @@ -1839,7 +1839,7 @@ void janet_ev_init(void) { int status; do { status = kevent(janet_vm.kq, &event, 1, NULL, 0, NULL); - } while (status == -1 errno != EINTR); + } while (status == -1 && errno != EINTR); if (status == -1) goto error; return; error: