This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: restartable system calls under Linux
- To: Mikael Djurfeldt <mdj at mdj dot nada dot kth dot se>
- Subject: Re: restartable system calls under Linux
- From: "Dale P. Smith" <dpsm at en dot com>
- Date: Tue, 13 Jun 2000 16:17:56 -0400
- CC: guile at sourceware dot cygnus dot com
- Organization: Altus Technologies Corporation.
- References: <39462278.64F61E48@en.com> <xy73dmhhebu.fsf@mdj.nada.kth.se>
Mikael Djurfeldt wrote:
> > Autoconf detects restartable system calls by forking a process, and waiting on the child. The child sends the parent an interrupt during the wait. The code detects if the wait was restarted or not.
> >
> > Would it be better to more closely simulate what's actually happening? Something like sending an interrupt while doing a read?
>
> If you (or someone else) give me a test which detects this situation,
> I'll include it in Guile. We'll use a combination of the autoconf
> test and the new test, demanding both to succeed in order to exclude
> the loop in the SCM_SYSCALL macro.
>
> Preferably, you would write an autoconf test, but a small test program
> is also OK.
Well, a simple read() seems to be restartable. I suspect that readline is doing something magic. Does anyone with more experience than I in unix terminal i/o with readline interaction care to offer
any suggestions?
Thanks!
-Dale
--
Dale P. Smith
Altus Technologies Corp.
dsmith@altustech.com
400-746-9000 x309