diff --git a/postfork.cpp b/postfork.cpp index d161712e9..4379ca2dd 100644 --- a/postfork.cpp +++ b/postfork.cpp @@ -386,7 +386,6 @@ bool fork_actions_make_spawn_properties(posix_spawnattr_t *attr, posix_spawn_fil // means that the process becomes its own // group leader, which is what set_child_group did // in this case. So we want this to be 0 if j->pgid is 0. - //if (!j->pgid) j->pgid = getpid(); desired_parent_group_id = j->pgid; } diff --git a/proc.cpp b/proc.cpp index 6fc5e500b..deeb0ed8d 100644 --- a/proc.cpp +++ b/proc.cpp @@ -1168,11 +1168,11 @@ void job_continue (job_t *j, int cont) if( job_is_completed( j )) { - // It's possible that the job will produce output and exit before we've even read from it. - // We'll eventually read the output, but it may be after we've executed subsequent calls - // This is why my prompt colors kept getting screwed up - the builtin echo calls - // were sometimes having their output combined with the set_color calls in the wrong order! - read_try(j); + // It's possible that the job will produce output and exit before we've even read from it. + // We'll eventually read the output, but it may be after we've executed subsequent calls + // This is why my prompt colors kept getting screwed up - the builtin echo calls + // were sometimes having their output combined with the set_color calls in the wrong order! + read_try(j); process_t *p = j->first_process;