From 1b9c6f4647d6286e6841f7d9b9d5627cb21b689d Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Wed, 28 Aug 2019 00:09:24 +1000 Subject: [PATCH] Make sim poll non-blocking Signed-off-by: Benjamin Herrenschmidt --- sim_console_c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim_console_c.c b/sim_console_c.c index 0a89fb2..869c896 100644 --- a/sim_console_c.c +++ b/sim_console_c.c @@ -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)