Re: STDIN Stream Query

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

 



Jason Freeman wrote:

> Hi All
> 
> I am having a problem getting stream_set_blocking to work the way I
> expect on STDIN. Please could someone tell me why while blocking is
> set to false fread does not get anything. 

When a file descriptor (stdin) is non-blocking, any read() will not
block and wait for data to become available, but will return right away
with or without data.  Set the fd to blocking to wait for data.


/Per Jessen

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux