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

2019-03-26 Thread Al Payne
Konstantin, I also tried to replicate on CentOS (under Fusion), but get the two expected trap messages when killing the internal process: ext pid=25449 int pid=25450 int exit trap in 25450 subshell done ext exit trap in 25449 Test install: - CentOS Linux release 7.2.1511 (Cor

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

2019-03-26 Thread Konstantin Andreev
As you decide. Debian (working), subshell syscall trace on receiving sigterm: | $ strace -p 1436 | strace: Process 1436 attached | wait4(-1, 0x7ffd49d66b90, 0, NULL) = ? ERESTARTSYS (To be restarted if SA_RESTART is set) | --- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=1461, si_uid