libvncserver
libvncserver copied to clipboard
libvncserver: handle EINTR
Hi,
I'm using libvncserver in a program that uses many signals, I have no control over that. I noticed that this select sometimes gets an EINTR.
The proposed fix is not pretty because it uses a goto but it's also simple & readable.
Please tell me if you'd prefer a do {} while loop. The disadvantage is that the break after would have to changed.
Thanks for this awesome lib Pierre
PS: I suspect other syscalls could have issues too
I don't remember if I've tried it, I'll have to check again
I don't remember if I've tried it, I'll have to check again
That'd be nice - thank's in advance!
Needs a check if continue does the job as well.
I'll get some time to look at it at the beginning of next week