Skip to content
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

Serial open forced to specify tiocexcl, serial-rs cannot work under WSL1 #68

Open
lgl88911 opened this issue May 22, 2022 · 0 comments
Open

Comments

@lgl88911
Copy link

lgl88911 commented May 22, 2022

serial-rs use ioctl::tiocexcl(port.fd) to set exclusive access to device.

if let Err(err) = ioctl::tiocexcl(port.fd) {

Since WSL1 does not support tiocexcl, this will cause rust-rs to not work under WSL1. Whether it is possible to cancel the mandatory use of tiocexcl, so that users of serial-rs can freely choose.
Both minicom and pyserial do not enforce tiocexcl, they both work fine under WSL1. And the problem I actually encountered is esp-rs/espmonitor#47, I really hope serial-rs can support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant