-
Notifications
You must be signed in to change notification settings - Fork 842
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
udev_monitor_enable_receiving returns EINVAL #1121
Comments
Yeah lol, udev doesn't even run at all. Right now devfs is practically hardcoded in the init executable (this is actually the only Microsoft ELF64 file that gets dropped into
If you delete it, it gets regenerated. I don't know what they're going to do about systemd and udev. Right now all that stuff that gets set up by udev (devfs in /dev for example) is basically hardcoded into the |
Other than that:
It's even dynamically linked with As for electron, |
@therealkenc I dropped it into a hex editor, and I'm a little bit worried about the fact that so much of the i/o infrastructure for WSL is going to be shoved into the Edit: Thinking about it more, since init is creating the ttys using the bus, you might be able to ape the WSL |
Don't get too hung up on udev or systemd. It's kind of a side-show really. The native Linux kernel proper technically doesn't care if udev exists either. It's a userspace library (libudev) that receives messages from the kernel over AF_NETLINK -- assuming anything is there to listen. It is this WSL kernel netlink surface that is missing. Other Linux distros like Android don't have systemd. That is, udev is a "Ubuntu etc thing" not a "Linux thing". In fact because libudev is just a userspace library, you can totally just stub udev and make the rest of userspace happy. I just about did that for the Chrome port, but it turns out you can just configure it away (with some work) because Android, ChromeOS, OS X, and embedded environments have never heard of it. The chromium content library on Debian/Ubuntu annoyingly uses it to see if usb thumb drives, usb bluetooth headsets, and usb cameras have come and gone. Sooner or later it seems to me they are going to have to get out of the way of 'real init' on PID 1 (where God intended it) if they want to remain distro-agnostic. But since right now 'real init' on Ubuntu means systemd, that's premature until enough of the kernel netlink protocol is implemented or stubbed enough to make systemd happy. |
The OP here was:
Which was addressed with the NETLINK_KOBJECT_UEVENT work in 16273. |
Now that #758 is fixed, another error prevents running Electron apps (tested w/ hyperterm & atom):
I digged a bit, and apparently it's because of the
udev_monitor_enable_receiving
function returning -22, which appears to be EINVAL.The text was updated successfully, but these errors were encountered: