From 894aaef267230acc83413ec89f54cc84bde52bb0 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sun, 8 Oct 2023 15:42:54 -0500 Subject: [PATCH] Mac please --- src/core/ev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ev.c b/src/core/ev.c index ce45b6c1..e87e001e 100644 --- a/src/core/ev.c +++ b/src/core/ev.c @@ -1680,7 +1680,7 @@ void janet_register_stream(JanetStream *stream) { status = kevent(janet_vm.kq, kevs, length, NULL, 0, NULL); } while (status == -1 && errno == EINTR); if (status == -1) { - if (errno == ENODEV) { + if ((errno == ENODEV) || (errno == EPERM)) { /* Couldn't add to event loop, so assume that it completes * synchronously. */ stream->flags |= JANET_STREAM_UNREGISTERED;