diff options
author | Kirill Bulatov <mail4score@gmail.com> | 2024-03-09 13:32:32 +0200 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2024-03-19 02:20:53 +0100 |
commit | 0a859ae3732d0f378474f80107186e46b61148fc (patch) | |
tree | 9cd482ea1aafc053bc4bfe656462a5303d3e4f93 /alacritty_terminal/src/tty/mod.rs | |
parent | 99e52bab77c2ff1412088a15b9aa2111a193d244 (diff) | |
download | alacritty-0a859ae3732d0f378474f80107186e46b61148fc.tar.gz alacritty-0a859ae3732d0f378474f80107186e46b61148fc.zip |
Send exit code events on child process exit
Fixes #7753.
Diffstat (limited to 'alacritty_terminal/src/tty/mod.rs')
-rw-r--r-- | alacritty_terminal/src/tty/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alacritty_terminal/src/tty/mod.rs b/alacritty_terminal/src/tty/mod.rs index d1bb023c..35d227b8 100644 --- a/alacritty_terminal/src/tty/mod.rs +++ b/alacritty_terminal/src/tty/mod.rs @@ -67,8 +67,8 @@ pub trait EventedReadWrite { /// Events concerning TTY child processes. #[derive(Debug, PartialEq, Eq)] pub enum ChildEvent { - /// Indicates the child has exited. - Exited, + /// Indicates the child has exited, with an error code if available. + Exited(Option<i32>), } /// A pseudoterminal (or PTY). |