Skip to content

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

@lgl88911

Description

@lgl88911

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions