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.
serial-rs use
ioctl::tiocexcl(port.fd)to set exclusive access to device.serial-rs/serial-unix/src/tty.rs
Line 72 in cb28b14
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.