Vincent Lefevre dixit:

>This is incorrect, because SIGINT should be ignored.
>
>This issue disappears when the subshell has several commands:
>
>$ mksh -c 'trap "" INT; trap; ( :; sleep 3; ); echo $?'
>trap -- '' INT
>^C0

Consider this:

$ mksh -c 'trap "" INT; trap; ( :; exec sleep 3; ); echo $?'
trap -- '' INT
^C130

The “one” command run in the subshell is exec’d so you’re hitting
the parent shell’s INT handler… I think.

Feel free to have a look at the source and see if you come up with
what exactly seems to be the problem.

bye,
//mirabilos
-- 
Gestern Nacht ist mein IRC-Netzwerk explodiert. Ich hatte nicht damit
gerechnet, darum bin ich blutverschmiert… wer konnte ahnen, daß SIE so
reagier’n… gestern Nacht ist mein IRC-Netzwerk explodiert~~~
        (as of 2021-06-15 The MirOS Project temporarily reconvenes on OFTC)

Reply via email to