spice_debug was called for not-EINTR case, move it to the right place. Signed-off-by: Uri Lublin <uril@xxxxxxxxxx> --- server/dispatcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/dispatcher.c b/server/dispatcher.c index f0479aa..f4fe97b 100644 --- a/server/dispatcher.c +++ b/server/dispatcher.c @@ -254,9 +254,9 @@ static int write_safe(int fd, uint8_t *buf, size_t size) ret = write(fd, buf + written_size, size - written_size); if (ret == -1) { if (errno != EINTR) { - spice_debug("EINTR in write"); return -1; } + spice_debug("EINTR in write"); continue; } written_size += ret; -- 2.9.3 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel