commit | 7808121b9a1e44ef12fecd49fa6c268f27a150fc | [log] [tgz] |
---|---|---|
author | Daniel De Graaf <dgdegra@tycho.nsa.gov> | Wed Sep 08 18:10:42 2010 -0400 |
committer | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | Thu Sep 09 10:48:22 2010 +1000 |
tree | 5536cceff908e630d1a15c4f63abd7210ed4973b | |
parent | 76ce7618f9a24f7b13958c67f7d5ccfcdab71475 [diff] |
xenbus: avoid zero returns from read() It is possible to get a zero return from read() in instances where the queue is not empty but has no elements with data to deliver to the user. Since a zero return from read is an error indicator, resume waiting or return -EAGAIN (for a nonblocking fd) in this case. Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>