diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-28 14:39:47 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-28 14:39:47 -0700 |
commit | 005edf71a8ed3493b9fbbc1de81d10ed73cdca79 (patch) | |
tree | b81dcea4f872272657ec81f662d6eb34394d0c3d /parse_execution.cpp | |
parent | c1f64ba017b3294820ed5381cfd7a6e36501dcc8 (diff) |
Fix initially backgrounded jobs. Fixes #1373
Diffstat (limited to 'parse_execution.cpp')
-rw-r--r-- | parse_execution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parse_execution.cpp b/parse_execution.cpp index 649caaa8..8a2e9d27 100644 --- a/parse_execution.cpp +++ b/parse_execution.cpp @@ -1371,7 +1371,7 @@ parse_execution_result_t parse_execution_context_t::run_1_job(const parse_node_t (job_control_mode==JOB_CONTROL_ALL) || ((job_control_mode == JOB_CONTROL_INTERACTIVE) && (get_is_interactive()))); - job_set_flag(j, JOB_FOREGROUND, 1); + job_set_flag(j, JOB_FOREGROUND, ! tree.job_should_be_backgrounded(job_node)); job_set_flag(j, JOB_TERMINAL, job_get_flag(j, JOB_CONTROL) \ && (!is_subshell && !is_event)); |