MOO-cows Mailing List Archive

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

Re: read() subtlety



Christopher Unkel writes:
> If there is input available, read() returns immediately without
> suspending.

This is not true; if the non-blocking flag is false or absent, then the read()
function *always* suspends the calling task; this is clear from the bf_read()
code in execute.c.  I don't have an explanation for the problem Gustavo is
seeing.

	Pavel


References:

Home | Subject Index | Thread Index