[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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.
Hi. This report doesn't seem different from
https://lists.gnu.org/archive/html/bug-bash/2023-07/msg00090.html
I applied a fix for that on 7/24 and it's in devel branch commit
http://git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=8418224f32f4dda85019cae063370c18bbd2d036
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/