mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-09 00:31:14 -03:00
Remove proc_create_event
Switch to a set of factory functions inside event_t. No user-visible change here.
This commit is contained in:
@@ -577,9 +577,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
int exit_status = res ? STATUS_CMD_UNKNOWN : parser.get_last_status();
|
||||
|
||||
event_fire(parser,
|
||||
proc_create_event(L"PROCESS_EXIT", event_type_t::exit, getpid(), exit_status));
|
||||
event_fire(parser, event_t::process_exit(getpid(), exit_status));
|
||||
|
||||
// Trigger any exit handlers.
|
||||
wcstring_list_t event_args = {to_string(exit_status)};
|
||||
|
||||
Reference in New Issue
Block a user