Rename event_type_t::job_exit to event_type_t::caller_exit

"job_exit" events, despite their name, can only be created via
the '--on-job-exit caller' misfeature of function. Rename it to make it
clear that this event type is specifically for caller-exit.
This commit is contained in:
ridiculousfish
2020-02-08 16:08:26 -08:00
parent 91df645c62
commit 93fc0d06d4
5 changed files with 18 additions and 30 deletions

View File

@@ -616,7 +616,7 @@ static bool process_clean_after_marking(parser_t &parser, bool allow_interactive
proc_create_event(L"JOB_EXIT", event_type_t::exit, -j->pgid, 0));
}
exit_events.push_back(
proc_create_event(L"JOB_EXIT", event_type_t::job_exit, j->job_id(), 0));
proc_create_event(L"JOB_EXIT", event_type_t::caller_exit, j->job_id(), 0));
}
}