On 12/18/24 1:27 PM, Kaz Kylheku wrote:
What remains is the question why I somehow cannot get my
stuff to work with a different signal like SIGUSR1 or SIGVTALRM.
Bash will not take them while it's sitting in the call to readline.
Something is indeed messed up in your execution environment.
Let's try killing an interactive shell sitting in readline() from another
terminal:
$ echo $BASH_VERSION
5.2.37(6)-release
$ trap
$ echo $$
30762
User defined signal 1: 30
[shell terminates]
Now let's try killing an interactive shell that's not sitting in readline()
with the same fatal signal:
$ echo $BASH_VERSION
5.2.37(6)-release
$ trap
$ kill -USR1 $$
User defined signal 1: 30
[shell terminates].
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/