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

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