On 12/15/2014 09:04 PM, Jeremy White wrote:
Maybe retry immediately for EINTR:
do {
rc = read()
} while (! ((rc == -1) && (errno == EINTR)))
and remove "|| errno == EINTR" below.
Can you explain why? I imagine that the EINTR case should be quite
rare, and that in those cases, it would return into the regular
channel handling, where it will be flagged as readable, and eventually
return.
Unlike e.g. EAGAIN, the data to read is available.
The idea is doing the read immediately instead of eventually.
This may be a premature optimization.
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel