"Todd C. Miller" <[email protected]> writes:

> 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.

Yup, zsh too.

> Our ksh may have a missing check for the FMONITOR flag being set
> in the exit value handling.

Ah, so it's our ksh after all. Unless there's a good reason for it to be
different, should we change it to match the rest of the pack behavior?

Thanks
Greg

Reply via email to