1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 13:21:38 +03:00
wezterm/pty
Wez Furlong 0a7e30e9bc serial: fix busy waiting on unix systems.
The serial port is always in non-blocking mode so we need to use our
own timeout and `poll(2)`.

While we're in here, the `wait` method could cause the gui to exit
immediately on startup because we'd interpret its immediate error
return result as child process completion.

This commit makes the wait method look at the carrier detect signal
and propagates IO errors back as completion events.

refs: https://github.com/wez/wezterm/issues/1594
2022-02-12 11:38:45 -07:00
..
examples pty: update async example for more recent smol release 2020-10-03 11:15:57 -07:00
src serial: fix busy waiting on unix systems. 2022-02-12 11:38:45 -07:00
Cargo.toml deps: shell-words -> 1.1.0 2022-02-06 18:32:10 -07:00