For example, an application would be a server program
that is controlable by a user through some kind of commands.
In other words, a server program with CUI.
Currently I could do it by csi, since it does not block the server thread,
but what if I would like to compile it into a single executable?
Would char-ready? help?

Thanks,
Daishi

At Sun, 17 Jul 2005 09:01:48 +0200,
felix winkelmann wrote:
> 
> On 7/15/05, Daishi Kato <[EMAIL PROTECTED]> wrote:
> > Hi,
> > 
> > How could I make the standard (read) non-blocking?
> > 
> 
> Sorry, but currently I/O from stdio and files is fully blocking.
> The reason why the REPL doesn't seem to block is due to a clever
> hack (originally by Chris Double) that performs a select(2) before
> actually reading an expression. Doing the same for every input would
> be too much and would slow down I/O unnecessarily (and Chicken's
> I/O isn't particularly fast in the first place).
> 
> Do you have a particular application in mind? Perhaps we can find
> a workaround.
> 
> 
> cheers,
> felix


_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to