mirror of
https://github.com/janet-lang/janet
synced 2025-02-24 12:10:00 +00:00
Mac please
This commit is contained in:
parent
e209e54ffe
commit
894aaef267
@ -1680,7 +1680,7 @@ void janet_register_stream(JanetStream *stream) {
|
|||||||
status = kevent(janet_vm.kq, kevs, length, NULL, 0, NULL);
|
status = kevent(janet_vm.kq, kevs, length, NULL, 0, NULL);
|
||||||
} while (status == -1 && errno == EINTR);
|
} while (status == -1 && errno == EINTR);
|
||||||
if (status == -1) {
|
if (status == -1) {
|
||||||
if (errno == ENODEV) {
|
if ((errno == ENODEV) || (errno == EPERM)) {
|
||||||
/* Couldn't add to event loop, so assume that it completes
|
/* Couldn't add to event loop, so assume that it completes
|
||||||
* synchronously. */
|
* synchronously. */
|
||||||
stream->flags |= JANET_STREAM_UNREGISTERED;
|
stream->flags |= JANET_STREAM_UNREGISTERED;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user