]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
Wait forever at poll()
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 13 Mar 2013 17:03:24 +0000 (14:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 13 Mar 2013 17:03:24 +0000 (14:03 -0300)
timeout = 0 doesn't wait. What we want there is to wait forever

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
ras-mc-event.c

index 1e768d2bc65ca828fe67a1f5c0cde21a6ee822d3..03acf3255c651a213ead0c8324206e22c62a5490 100644 (file)
@@ -298,7 +298,7 @@ static int read_ras_event(int fd,
        };
 
        do {
-               ready = poll(&fds, 1, 0);
+               ready = poll(&fds, 1, -1);
                if (ready < 0) {
                        perror("poll");
                }