mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +00:00
Correct "fire_exit" event back to "fish_exit"
This was causing fish_exit to not fire, which caused (among other things)
leaking tmux processes from the tests.
This was bisected to eacbd6156d
This commit is contained in:
parent
5233370cda
commit
0f56db55a2
2 changed files with 9 additions and 1 deletions
|
@ -763,7 +763,7 @@ fn main() {
|
|||
// Trigger any exit handlers.
|
||||
event::fire_generic(
|
||||
parser,
|
||||
L!("fire_exit").to_owned(),
|
||||
L!("fish_exit").to_owned(),
|
||||
vec![exit_status.to_wstring()],
|
||||
);
|
||||
|
||||
|
|
8
tests/checks/fish_exit.fish
Normal file
8
tests/checks/fish_exit.fish
Normal file
|
@ -0,0 +1,8 @@
|
|||
#RUN: %fish -C 'set -g fish %fish' %s
|
||||
|
||||
# fish_exit fires successfully.
|
||||
echo 'function do_exit --on-event fish_exit; echo "fish_exiting $fish_pid"; end' > /tmp/test_exit.fish
|
||||
$fish /tmp/test_exit.fish
|
||||
# CHECK: fish_exiting {{[0-9]+}}
|
||||
|
||||
rm /tmp/test_exit.fish
|
Loading…
Reference in a new issue