Re: give_terminal_to after re-backgrounded async job

2023-07-10 Thread Chet Ramey
On 7/7/23 12:43 PM, Grisha Levit wrote: The fix [1] for the issue reported in [2]: + give the terminal to pipeline_pgrp. We don't give the terminal + back to shell_pgrp if an async job exits because we never gave it + to that job in the first place. */ if ((flags & JWAIT_NOTERM) == 0 &&

give_terminal_to after re-backgrounded async job

2023-07-07 Thread Grisha Levit
The fix [1] for the issue reported in [2]: + give the terminal to pipeline_pgrp. We don't give the terminal + back to shell_pgrp if an async job exits because we never gave it + to that job in the first place. */ if ((flags & JWAIT_NOTERM) == 0 && running_in_background == 0 && + (job == NO