1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-26 00:10:27 +00:00

Disabling superfluous code

The code in question may be checking things in an erroneous manner?
This commit is contained in:
llmII 2021-09-03 17:18:40 -05:00
parent f48dbde736
commit 8f0641f36c
No known key found for this signature in database
GPG Key ID: E3AD2E259F58A9A0

View File

@ -1602,11 +1602,12 @@ void add_kqueue_events(const struct kevent *events, int length) {
status = kevent(janet_vm.kq, events, length, NULL, 0, NULL);
if(status == -1 && errno != EINTR)
janet_panicv(janet_ev_lasterr());
/* Disabling this for now, probably is wrong, haven't seen it done elsewhere
for(int i = 0; i < length; i++) {
if((events[i].flags & EV_ERROR) && events[i].data != EINTR) {
janet_panicv(janet_ev_lasterr());
}
}
}*/
}
JanetListenerState *janet_listen(JanetStream *stream, JanetListener behavior, int mask, size_t size, void *user) {