cleanup_exit

Function cleanup_exit 

Source
pub fn cleanup_exit<T>(tag: T, engine_state: &EngineState, exit_code: i32) -> T
Expand description

Exit the process or clean jobs if appropriate.

Drops tag and exits the current process if there are no running jobs, or if exit_warning_given is true. When running in an interactive session, warns the user if there were jobs and sets exit_warning_given instead, returning tag itself in that case.