fix lint errors that have crept in

This commit is contained in:
Kurtis Rader
2017-05-04 22:42:42 -07:00
parent 8814f34dc1
commit be2b6bfdc9
21 changed files with 54 additions and 80 deletions

View File

@@ -454,11 +454,9 @@ void exec_job(parser_t &parser, job_t *j) {
// program to exit before continuing in the pipeline, causing the group leader to exit.
if (j->get_flag(JOB_CONTROL) && !exec_error) {
for (const process_ptr_t &p : j->processes) {
if (p->type != EXTERNAL) {
if (!p->is_last_in_job || !p->is_first_in_job) {
needs_keepalive = true;
break;
}
if (p->type != EXTERNAL && (!p->is_last_in_job || !p->is_first_in_job)) {
needs_keepalive = true;
break;
}
}
}