[Spice-devel] [xf86-video-qxl v5] Enable smartcard support for XSpice.
Uri Lublin
uril at redhat.com
Tue Dec 16 01:33:53 PST 2014
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.
More information about the Spice-devel
mailing list