From: Benjamin Herrenschmidt Date: Tue, 27 Aug 2019 14:09:24 +0000 (+1000) Subject: Make sim poll non-blocking X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b9c6f4647d6286e6841f7d9b9d5627cb21b689d;p=microwatt.git Make sim poll non-blocking Signed-off-by: Benjamin Herrenschmidt --- 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)