On Monday 12 September 2011, Stefano Lattarini wrote: > On Monday 12 September 2011, Stefano Lattarini wrote: > > > > The "default" Korn Shell on Debian GNU/Linux (package `ksh', version > > `93u-1') seems to exhibit the same issue. > > > > And if I'm not reading the strace output wrong, this is due to the fact > > that the Debian korn shell is apparently killing itself (yikes!) with the > > same signal that killed the child process: > > It's better on Solaris: its /bin/ksh (and /usr/xpg4/bin/sh) "only" exit > with status 130 [*] if a child is terminated by a SIGINT; so the signal is > not "recursively propagated". > > [*] Well, it still executes the trap associated with SIGINT, but probably > does so through special-cased code, without passing through real `kill' > system calls. I guess. > These might also be useful to better understand the issue in question: <http://mail.opensolaris.org/pipermail/ksh93-integration-discuss/2009-February/004121.html> <http://www.cons.org/cracauer/sigint.html> In particular, the second one hints how the ksh behaviour might be desirable sometimes. Still, other times it's just a PITA, so I'd love to have an option to disable it. Oh well, now that I've understood the problem, working around it in the automake testsuite shouldn't be too difficult anyway.
Regards, Stefano