From ec295e359a584de681681c96657ae0594a1df7c2 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Thu, 24 Dec 2009 17:22:46 +0100 Subject: [PATCH] Fix standalone polling loop Not explicitely checking for POLLIN leads to breakage. Unbreak saned. --- ChangeLog | 3 +++ frontend/saned.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 05a92f945..b3644f70d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2009-12-24 Julien Blache + * frontend/saned.c: fix a bug in the standalone polling code. + 2009-12-05 Stéphane Voltz * backend/genesys.c backend/genesys_gl841.c backend/genesys_low.h: fixed amount of bytes left to read at document end for gl841 based diff --git a/frontend/saned.c b/frontend/saned.c index c263abf84..ae6449460 100644 --- a/frontend/saned.c +++ b/frontend/saned.c @@ -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)