This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
readline messing with SA_RESTART for SIGWINCH
- To: bug-guile <bug-guile at gnu dot org>
- Subject: readline messing with SA_RESTART for SIGWINCH
- From: "Dale P. Smith" <dpsm at en dot com>
- Date: Thu, 15 Jun 2000 15:06:01 -0400
- CC: guile <guile at sourceware dot cygnus dot com>
- Organization: Altus Technologies Corporation.
If you set rl_catch_sigwinch to 0 in scm_init_readline, the problem with the readline library turning off SA_RESTART for SIGWINCH goes away. But then the readline library doesn't handle a SIGWINCH
either. :(
You can set rl_pre_input_hook to a function that does siginterrupt(SIGWINCH, 0) or uses sigaction to set SA_RESTART. This provides a fix and lets readline handle SIGWINCH.
Of course, the right thing is to fix readline!
-Dale
--
Dale P. Smith
Altus Technologies Corp.
dsmith@altustech.com
400-746-9000 x309