bug-bash
[Top][All Lists]
Advanced

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

Re: [Bug-readline] Problem with CTRL-z and readline()


From: Hans Lub
Subject: Re: [Bug-readline] Problem with CTRL-z and readline()
Date: Mon, 2 Mar 2015 10:47:35 +0100


2015-03-02 2:14 GMT+01:00 Chet Ramey <address@hidden>:
Any ideas are welcome.

I have never thought very deeply about this, but rlwrap (which uses the alternate interface and has its own signal handlers) remains suspended in the SIGTSTP signal handler (by resetting the SIGTSTP disposition and then sending a SIGTSTP to itself)  and defers the restoring until after wakeup (cf signals.c). 

Yes, it's a bit of a hack, and rlwrap is very careless about any non-fatal signal (other than SIGCONT) that could arrive while it is suspendend, but I think these could be handled as well.

regards

Hans


--
Hans Lub +31 (0)30 2899249
Dolomieten 74 3524 VH Utrecht (Nederland)  address@hidden


reply via email to

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