diff options
Diffstat (limited to 'hush.c')
-rw-r--r-- | hush.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1186,7 +1186,7 @@ static int run_list_real(struct pipe *pi) | |||
1186 | if (tcsetpgrp(0, pi->pgrp) && errno != ENOTTY) | 1186 | if (tcsetpgrp(0, pi->pgrp) && errno != ENOTTY) |
1187 | perror_msg("tcsetpgrp"); | 1187 | perror_msg("tcsetpgrp"); |
1188 | rcode = pipe_wait(pi); | 1188 | rcode = pipe_wait(pi); |
1189 | if (tcsetpgrp(0, getpid()) && errno != ENOTTY) | 1189 | if (tcsetpgrp(0, getpgrp()) && errno != ENOTTY) |
1190 | perror_msg("tcsetpgrp"); | 1190 | perror_msg("tcsetpgrp"); |
1191 | signal(SIGTTIN, SIG_DFL); | 1191 | signal(SIGTTIN, SIG_DFL); |
1192 | signal(SIGTTOU, SIG_DFL); | 1192 | signal(SIGTTOU, SIG_DFL); |