Remove proc_create_event

Switch to a set of factory functions inside event_t.
No user-visible change here.
This commit is contained in:
ridiculousfish
2021-05-17 15:33:33 -07:00
parent 962b0f8b90
commit 60d75e9aa0
5 changed files with 51 additions and 24 deletions

View File

@@ -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)};