Changeset 3244 for trunk/essentials/app-shells/bash/jobs.c
- Timestamp:
- Apr 30, 2007, 1:15:03 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/essentials/app-shells/bash/jobs.c
r3243 r3244 624 624 * the parent gives it away. 625 625 * 626 * Don't give the terminal away if this shell is an asynchronous 627 * subshell. 628 * 626 629 */ 627 if (job_control && newjob->pgrp )630 if (job_control && newjob->pgrp && (subshell_environment&SUBSHELL_ASYNC) == 0) 628 631 give_terminal_to (newjob->pgrp, 0); 629 632 } … … 1709 1712 shell's process group (we could be in the middle of a 1710 1713 pipeline, for example). */ 1711 if (async_p == 0 && pipeline_pgrp != shell_pgrp )1714 if (async_p == 0 && pipeline_pgrp != shell_pgrp && ((subshell_environment&SUBSHELL_ASYNC) == 0)) 1712 1715 give_terminal_to (pipeline_pgrp, 0); 1713 1716
Note:
See TracChangeset
for help on using the changeset viewer.