mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-07-03 01:41:15 -03:00
Make job_control a constant property of job_t
It no longer changes.
This commit is contained in:
@@ -918,12 +918,6 @@ bool exec_job(parser_t &parser, const shared_ptr<job_t> &j, const job_lineage_t
|
||||
// Check to see if we should reclaim the foreground pgrp after the job finishes or stops.
|
||||
const bool reclaim_foreground_pgrp = (tcgetpgrp(STDIN_FILENO) == pgrp);
|
||||
|
||||
// If we are running nested inside a function or block with job control, then we need job
|
||||
// control too.
|
||||
if (lineage.root_has_job_control) {
|
||||
j->mut_flags().job_control = true;
|
||||
}
|
||||
|
||||
// Perhaps we know our pgroup already.
|
||||
assert(j->pgid == INVALID_PID && "Should not yet have a pid.");
|
||||
switch (j->pgroup_provenance) {
|
||||
|
||||
Reference in New Issue
Block a user