This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: fport_fill_input SIGWINCH error
- To: guile at sourceware dot cygnus dot com
- Subject: Re: fport_fill_input SIGWINCH error
- From: "Dale P. Smith" <dpsm at bigbird dot en dot com>
- Date: Mon, 22 May 100 15:46:40 -0400 (EDT)
Gary Houston wrote:
> > Should the read() be restarted or should a select() be before the read?
>
> Note that the call to read in fport_fill_input is already wrapped in
> an EINTR-catching loop, that's what SCM_SYSCALL is for. However it's
> disabled if configure detects that system calls are restartable, since
> it should be impossible to get the EINTR error in this case. That's
> the theory anyway. I can't reproduce the problem (using a recent
> linux 2.3 kernel) so I don't have any idea what's going wrong. Presumably
> libguile/scmconfig.h will contain the line:
>
> #define HAVE_RESTARTABLE_SYSCALLS 1
>
> and most likely removing this line and recompiling will make the problem
> go away.
Yes, libguile/scmconfig.h has that line, and yes, removing it and recompiling
fixes the problem. I am running a 2.2.14 kernel.
-Dale
--
Dale P. Smith
Altus Technologies Corp.
dsmith@altustech.com
400-746-9000 x309