mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 19:19:53 +00:00
Disabling superfluous code
The code in question may be checking things in an erroneous manner?
This commit is contained in:
parent
f48dbde736
commit
8f0641f36c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user