Fix standalone polling loop

Not explicitely checking for POLLIN leads to breakage. Unbreak saned.
merge-requests/1/head
Julien BLACHE 2009-12-24 17:22:46 +01:00
rodzic c23157c62a
commit ec295e359a
2 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -1,3 +1,6 @@
2009-12-24 Julien Blache <jb@jblache.org>
* frontend/saned.c: fix a bug in the standalone polling code.
2009-12-05 Stéphane Voltz <stef.dev at free.fr>
* backend/genesys.c backend/genesys_gl841.c backend/genesys_low.h:
fixed amount of bytes left to read at document end for gl841 based

Wyświetl plik

@ -3120,6 +3120,8 @@ run_standalone (int argc, char **argv)
break;
}
else if (! (fdp->revents & POLLIN))
continue;
fd = accept (fdp->fd, 0, 0);
if (fd < 0)