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

Re: 'wait -n' with and without id arguments

2024-09-29 Thread Zachary Santer
CWRU/CWRU.chlog: >9/25 > > jobs.c > - wait_for_any_job: if the jobs table is empty and there are no > eligible procsubs, and the shell is in posix mode, take a random > pid from the bgpids table, delete it, and return its status > (since we would be deleting that pid from bgpids a