On Tue, Aug 04, 2009 at 12:25:49PM +0300, Avi Kivity wrote:
On 08/04/2009 12:17 PM, Gleb Natapov wrote:This is correct for any file descriptor. Multiple readers shouldn't
Without epoll(), it's inherently racy since reads from other processesIf a different read comes after the write but after our read, it willReader may want to poll for the status change.
have transferred the value, resulting in the same situation.
I think reads should never block with a state based mechanism.
can clear the status.
simultaneously read from the same files descriptor if they expect to
make any sense from a result.