Re: Signal handling by readline

2024-10-01 Thread Chet Ramey
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

Re: Signal handling by readline

2024-09-30 Thread Elad Lahav
Thanks for taking the time to respond. On Mon, Sep 30, 2024 at 4:19 PM Chet Ramey wrote: > Bash isn't the only application using readline. Most applications using > it don't do anything special with the job control signals. Bash, being > a job control shell, is of course the exception. Understood

Re: Signal handling by readline

2024-09-30 Thread Chet Ramey
On 9/29/24 2:36 PM, Elad Lahav wrote: Hello, I was chasing an issue with bash signal handling on QNX, when I noticed that, whenever you hit enter, the readline library does the following for a few signals: 1. Install a new signal handler via sigaction() 2. Check the previous handler, as returne

Signal handling by readline

2024-09-29 Thread Elad Lahav
Hello, I was chasing an issue with bash signal handling on QNX, when I noticed that, whenever you hit enter, the readline library does the following for a few signals: 1. Install a new signal handler via sigaction() 2. Check the previous handler, as returned by this call 3. If it is SIG_IGN, call