Re: [PATCH] Use SIGCONT to avoid fg tcsetpgrp() SIGTTIN/SIGTTOU race
From:
Chet Ramey
Subject:
Re: [PATCH] Use SIGCONT to avoid fg tcsetpgrp() SIGTTIN/SIGTTOU race
Date:
Mon, 28 Aug 2023 14:41:26 -0400
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.14.0
On 8/25/23 8:59 PM, Earl Chew wrote:
A running background job can be stopped by SIGTTOU or SIGTTIN,
just as the fg command issues tcsetprgp() to give the job
the controlling terminal. This causes the fg command to appear
to have caused the job to stop.