diff options
author | Kirill Bulatov <mail4score@gmail.com> | 2024-03-09 13:32:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-09 15:32:32 +0400 |
commit | f5646ba352c809f78c55a9e1f6a5212aea787899 (patch) | |
tree | b6cdcc0c2516f8f243f226f5dd1630762e7a9e3d /alacritty_terminal/src/tty/mod.rs | |
parent | 992011a4cd9a35f197acc0a0bd430d89a0d01013 (diff) | |
download | alacritty-f5646ba352c809f78c55a9e1f6a5212aea787899.tar.gz alacritty-f5646ba352c809f78c55a9e1f6a5212aea787899.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). |