2015-03-02 2:14 GMT+01:00 Chet Ramey <chet.ra...@case.edu>:

> 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
<https://github.com/hanslub42/rlwrap/blob/master/src/signals.c#L177>).

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)  hanslu...@gmail.com

Reply via email to