-
-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
epoll support #73
Comments
@jart I think this can be implmented on BSD and macOS using kqueue, right? As for Windows I don't really know. |
It can probably be implemented on other platforms using just poll() if necessary. I've implemented epoll() support for just Linux for now. I was hoping it'd be enough to run NodeJS hello world but alas it also wants eventfd. |
I wanted to try it out but I'm getting:
|
Could you try syncing to head and let me know if that fixes things? |
That fixed that error. I'm trying to build on a linux aarch64 fresh ubuntu install. I installed make and gcc. Now I'm getting:
Should I tweak some compile flags and what's the best way to do that? Sorry for the noob questions, I don't normally work a lot with C tooling. |
Blink builds fine for me on Raspberry Pi if I run:
If |
@jart I was able to run it like this on an aarch64 mac + docker:
What I'm getting currently is:
|
The current epoll support seems to not be aware of vfs file descriptors and so chooses overlapping ranges for epoll_ctl fds:
I believe (though haven't double checked with a test program) that because it also doesn't do translation from vfs fds to real fds, that epoll_ctl also doesn't work to add file descriptors. |
@borkdude The |
The VFS subsystem was created on a fork before This can be fixed by simply hooking all With |
It might be possible to implement When an The same probably applies to eventfd. |
See discussion here.
The text was updated successfully, but these errors were encountered: