Remove job_t::wants_terminal

This now lives in the job group, not individual jobs.
This commit is contained in:
ridiculousfish 2020-07-17 14:10:31 -07:00
parent ba8b89873e
commit 7f8c00c20a
2 changed files with 0 additions and 4 deletions

View File

@ -1297,7 +1297,6 @@ end_execution_reason_t parse_execution_context_t::run_1_job(const ast::job_t &jo
(ctx.job_group && ctx.job_group->wants_job_control());
job_t::properties_t props{};
props.wants_terminal = wants_job_control && !ld.is_event;
props.initial_background = job_node.bg.has_value();
props.skip_notification =
ld.is_subshell || ld.is_block || ld.is_event || !parser->is_interactive();

View File

@ -409,9 +409,6 @@ class job_t {
/// special job that should not be reported.
bool skip_notification{};
/// Whether the job wants to own the terminal when in the foreground.
bool wants_terminal{};
/// Whether the job had the background ampersand when constructed, e.g. /bin/echo foo &
/// Note that a job may move between foreground and background; this just describes what the
/// initial state should be.