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/unix.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/unix.rs')
-rw-r--r-- | alacritty_terminal/src/tty/unix.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty_terminal/src/tty/unix.rs b/alacritty_terminal/src/tty/unix.rs index 2c06d54f..1034c5a9 100644 --- a/alacritty_terminal/src/tty/unix.rs +++ b/alacritty_terminal/src/tty/unix.rs @@ -381,7 +381,7 @@ impl EventedPty for Pty { None }, Ok(None) => None, - Ok(_) => Some(ChildEvent::Exited), + Ok(exit_status) => Some(ChildEvent::Exited(exit_status.and_then(|s| s.code()))), } } } |