Re: [xf86-video-qxl v5] Enable smartcard support for XSpice.

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

 



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





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]