chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH] read-all/read-string doesn't detect EOF in


From: Christian Kellermann
Subject: Re: [Chicken-hackers] [PATCH] read-all/read-string doesn't detect EOF in terminal
Date: Fri, 28 Sep 2012 16:26:34 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

* felix winkelmann <address@hidden> [120925 21:32]:
> Calling "(read-string #f)" or "(read-all)" from csi in a terminal will
> not detect EOF, waiting forever for more input. This is caused by
> "C_fast_read_string_from_file", which calls clearerr(3) to clear the
> error/eof status on encountering EOF. But when the input port is
> connected to a terminal, input may still follow and the EOF status
> will be lost. The patch removes the call to clearerr(3) and adds
> an additional EOF check at the beginning. I'm not 100% sure about
> this fix, but it seems to do the job.

Worked for me too, pushed.

Thanks Felix!

Christian

--
Be right back -- Godot.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]