On Fri, 07 Jan 2022 00:45:47 -0800, Philip Guenther wrote: > No where. The difference in behavior is that of 'sh' when signaled. Run > your test programs under "ktrace -i" and compare the behavioral difference > of the child 'sh' process after reception of the SIGINT.
To add to this, the shell uses an exit value of 128 + signal number when a command is killed by a signal. If you changes your test code to use a different shell like dash or bash you will see the same behavior as FreeBSD. Our ksh may have a missing check for the FMONITOR flag being set in the exit value handling. - todd
