> On 25 Jun 2018, at 12:46, Frediano Ziglio <fziglio@xxxxxxxxxx> wrote: > > Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> > --- > server/dispatcher.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/server/dispatcher.c b/server/dispatcher.c > index 301feffd..3e0decde 100644 > --- a/server/dispatcher.c > +++ b/server/dispatcher.c > @@ -190,13 +190,13 @@ static int read_safe(int fd, uint8_t *buf, size_t size, int block) > { > int read_size = 0; > int ret; > - struct pollfd pollfd = {.fd = fd, .events = POLLIN, .revents = 0}; > > if (size == 0) { > return 0; > } > > if (!block) { > + struct pollfd pollfd = {.fd = fd, .events = POLLIN, .revents = 0}; > while ((ret = poll(&pollfd, 1, 0)) == -1) { > if (errno == EINTR) { > spice_debug("EINTR in poll”); Acked-by: Christophe de Dinechin <dinechin@xxxxxxxxxx> > -- > 2.17.1 > > _______________________________________________ > Spice-devel mailing list > Spice-devel@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/spice-devel _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel