Make sim poll non-blocking
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 27 Aug 2019 14:09:24 +0000 (00:09 +1000)
committerAnton Blanchard <anton@ozlabs.org>
Mon, 9 Sep 2019 12:18:51 +0000 (22:18 +1000)
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
sim_console_c.c

index 0a89fb2e74709f701acf0a07244968d1620b71d7..869c8962505a0b8f847c9a80a2a47cfe68babe42 100644 (file)
@@ -117,7 +117,7 @@ void sim_console_poll(unsigned char *__rt)
        fdset[0].fd = STDIN_FILENO;
        fdset[0].events = POLLIN;
 
-       ret = poll(fdset, 1, -1);
+       ret = poll(fdset, 1, 0);
        //fprintf(stderr, "poll returns %d\n", ret);
 
        if (ret == 1)