Line
Link Here
|
0 |
-- bash-3.0.old/jobs.c |
0 |
++ bash-3.0/jobs.c |
Lines 437-444
Link Here
|
437 |
#if defined (PGRP_PIPE) |
437 |
#if defined (PGRP_PIPE) |
438 |
if (job_control) |
438 |
if (job_control) |
439 |
{ |
439 |
{ |
|
|
440 |
int fd; |
440 |
if (pipe (pgrp_pipe) == -1) |
441 |
if (pipe (pgrp_pipe) == -1) |
441 |
sys_error ("start_pipeline: pgrp pipe"); |
442 |
sys_error ("start_pipeline: pgrp pipe"); |
|
|
443 |
if ((fd = fcntl(pgrp_pipe[0], F_DUPFD, 10)) == -1 || close(pgrp_pipe[0]) == -1) |
444 |
sys_error ("start_pipeline: pgrp pipe"); |
445 |
pgrp_pipe[0] = fd; |
446 |
if ((fd = fcntl(pgrp_pipe[1], F_DUPFD, 10)) == -1 || close(pgrp_pipe[1]) == -1) |
447 |
sys_error ("start_pipeline: pgrp pipe"); |
448 |
pgrp_pipe[1] = fd; |
442 |
} |
449 |
} |
443 |
#endif |
450 |
#endif |
444 |
} |
451 |
} |