This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: fport_fill_input SIGWINCH error


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]