bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Signal handling by readline


From: Chet Ramey
Subject: Re: Signal handling by readline
Date: Tue, 1 Oct 2024 16:23:03 -0400
User-agent: Mozilla Thunderbird

On 9/30/24 4:43 PM, Elad Lahav wrote:

Applications that don't want readline to do this can disable it, at a
cost.
But it is still the case that bash makes many redundant system calls
on every line entered. Is setting rl_catch_signals to 0 in bash going
to have any adverse effects?

That would require me to add code to bash to take care of readline and
signal cleanup that readline does now. That comes at a cost, in both
time and additional code and effort.

What about changing it to a signal mask
that the application can set, such that readline knows which signals
it should touch and which ones to leave alone?

I'll consider adding something like that in a future version, but not
for readline-8.3.

If there is no race condition, though, then this is purely a
performance issue for something that is not performance-sensitive.

I agree.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]