diff options
Diffstat (limited to 'hush.c')
-rw-r--r-- | hush.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1185,7 +1185,7 @@ static int run_pipe_real(struct pipe *pi) | |||
1185 | pi->pgrp = 0; | 1185 | pi->pgrp = 0; |
1186 | 1186 | ||
1187 | /* Check if we are supposed to run in the foreground */ | 1187 | /* Check if we are supposed to run in the foreground */ |
1188 | if (pi->followup!=PIPE_BG) { | 1188 | if (interactive && pi->followup!=PIPE_BG) { |
1189 | if ((pi->pgrp = tcgetpgrp(ctty = 2)) < 0 | 1189 | if ((pi->pgrp = tcgetpgrp(ctty = 2)) < 0 |
1190 | && (pi->pgrp = tcgetpgrp(ctty = 0)) < 0 | 1190 | && (pi->pgrp = tcgetpgrp(ctty = 0)) < 0 |
1191 | && (pi->pgrp = tcgetpgrp(ctty = 1)) < 0) | 1191 | && (pi->pgrp = tcgetpgrp(ctty = 1)) < 0) |