Re: EXIT trap definition order

2023-03-20 Thread Chet Ramey
On 3/20/23 11:02 AM, Grisha Levit wrote: On Mon, Mar 20, 2023 at 10:57 AM Chet Ramey wrote: On 3/17/23 1:28 PM, Grisha Levit wrote: It seems that if a trap handler for a terminating signal resends its own signal (after resetting the signal disposition), any configured EXIT trap will be execut

Re: EXIT trap definition order

2023-03-20 Thread Grisha Levit
On Mon, Mar 20, 2023 at 10:57 AM Chet Ramey wrote: > > On 3/17/23 1:28 PM, Grisha Levit wrote: > > It seems that if a trap handler for a terminating signal resends its > > own signal (after resetting the signal disposition), any configured > > EXIT trap will be executed (as I think is expected), b

Re: EXIT trap definition order

2023-03-20 Thread Chet Ramey
On 3/17/23 1:28 PM, Grisha Levit wrote: It seems that if a trap handler for a terminating signal resends its own signal (after resetting the signal disposition), any configured EXIT trap will be executed (as I think is expected), but only if an EXIT trap had already been set prior to the the firs

EXIT trap definition order

2023-03-17 Thread Grisha Levit
It seems that if a trap handler for a terminating signal resends its own signal (after resetting the signal disposition), any configured EXIT trap will be executed (as I think is expected), but only if an EXIT trap had already been set prior to the the first instance of a trap having been set for t