bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subshell exit trap is not invoked if shell exit trap also set


From: Chet Ramey
Subject: Re: Subshell exit trap is not invoked if shell exit trap also set
Date: Tue, 26 Mar 2019 14:16:46 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.0

On 3/26/19 12:44 PM, Konstantin Andreev wrote:
> bash-5.0.3, - is it what is marked [Bash-5.0 patch 3: improve...] in bash.git?
> Just built and tested it. The systems are x86-64.
> 
> + Debian GNU/Linux buster/sid (pre-10): works (both exit traps are invoked)
>     (runs in virtual machine)
>     kernel-4.18.0-3-amd64, glibc-2.28-6
> 
> - CentOS Linux 7.2.1511: NOT work (subshell exit trap is NOT invoked)
>     (runs on real hardware)
>     kernel-3.10.0-327.36.3.el7.x86_64, glibc-2.17
> 
> - Oracle Solaris 11.3: NOT work (subshell exit trap is NOT invoked)
>     (runs on real hardware)
>     system/kernel/platform 0.5.11-0.175.3.1.0.4.0
>     system/library         0.5.11-0.175.3.1.0.3.0
> 
> What can I do to help you isolate this issue?

Run a system call tracer, I suppose. That will tell you the order in which
things happen when the processes are traced, at least.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]