mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-18 03:41:16 -03:00
Replace the process-exit event with generic "fish_exit" event
Turns out the process-exit is only ever used in conjunction with `%self`. Make that explicit by just adding a new "fish_exit" event, and deprecate the general process-exit machinery. Fixes #4700.
This commit is contained in:
@@ -437,7 +437,10 @@ int main(int argc, char **argv) {
|
||||
|
||||
int exit_status = res ? STATUS_CMD_UNKNOWN : proc_get_last_status();
|
||||
|
||||
// TODO: The generic process-exit event is useless and unused.
|
||||
// Remove this in future.
|
||||
proc_fire_event(L"PROCESS_EXIT", EVENT_EXIT, getpid(), exit_status);
|
||||
event_fire_generic(L"fish_exit");
|
||||
|
||||
restore_term_mode();
|
||||
restore_term_foreground_process_group();
|
||||
|
||||
Reference in New Issue
Block a user