diff options
author | Maciej Makowski <maciejm.github@cfiet.net> | 2019-11-16 21:11:56 +0000 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2019-11-16 22:11:56 +0100 |
commit | 48861e463311145a653350688dc4bad83a528d91 (patch) | |
tree | 6d384990dde03d27eb83a89852e75aa275b9db0e /alacritty_terminal/src/tty/mod.rs | |
parent | d741d3817debe9fdd4030bede3e4c8ca84ad078a (diff) | |
download | alacritty-48861e463311145a653350688dc4bad83a528d91.tar.gz alacritty-48861e463311145a653350688dc4bad83a528d91.zip |
Fix WinPTY freeze on termination
Fixes #2889.
Diffstat (limited to 'alacritty_terminal/src/tty/mod.rs')
-rw-r--r-- | alacritty_terminal/src/tty/mod.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/alacritty_terminal/src/tty/mod.rs b/alacritty_terminal/src/tty/mod.rs index 7150a42d..40d019f5 100644 --- a/alacritty_terminal/src/tty/mod.rs +++ b/alacritty_terminal/src/tty/mod.rs @@ -54,7 +54,7 @@ pub trait EventedReadWrite { } /// Events concerning TTY child processes -#[derive(PartialEq)] +#[derive(Debug, PartialEq)] pub enum ChildEvent { /// Indicates the child has exited Exited, @@ -66,13 +66,11 @@ pub enum ChildEvent { /// notified if the PTY child process does something we care about (other than writing to the TTY). /// In particular, this allows for race-free child exit notification on UNIX (cf. `SIGCHLD`). pub trait EventedPty: EventedReadWrite { - #[cfg(unix)] fn child_event_token(&self) -> mio::Token; /// Tries to retrieve an event /// /// Returns `Some(event)` on success, or `None` if there are no events to retrieve. - #[cfg(unix)] fn next_child_event(&mut self) -> Option<ChildEvent>; } |