On 7/31/20 7:27 PM, Ángel wrote:
> On 2020-07-31 at 10:13 -0400, Chet Ramey wrote:
>>
>> I'm going to have to test some more. When I tried it, all the shells
>> died.
>> (I did send the SIGHUP from another terminal.) I was using ksh93 as
>> the parent and bash-5.0.18 as the interactive bash, running on macOS.
>
> This is probably AIX-specific in that some ioctl called by tcsetattr
> seems to cause a SIGHUP when there is no tty.
> Their behavior kinda make sense.
Maybe, but it's not documented and seems to be unique to AIX.
> Can probably be easily fixed by masking SIGHUP in the handler.
It's a little more complicated to make that happen, but that's probably
going to be the right approach (AIX-specific, of course).
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/