# read() subtlety

Pavel Curtis (pavel@parc.xerox.com)
Thu, 12 Sep 1996 11:47:01 PDT

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    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