Make sim poll non-blocking

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
pull/34/head
Benjamin Herrenschmidt 5 years ago committed by Anton Blanchard
parent 48b689b665
commit 1b9c6f4647

@ -117,7 +117,7 @@ void sim_console_poll(unsigned char *__rt)
fdset[0].fd = STDIN_FILENO; fdset[0].fd = STDIN_FILENO;
fdset[0].events = POLLIN; fdset[0].events = POLLIN;


ret = poll(fdset, 1, -1); ret = poll(fdset, 1, 0);
//fprintf(stderr, "poll returns %d\n", ret); //fprintf(stderr, "poll returns %d\n", ret);


if (ret == 1) if (ret == 1)

Loading…
Cancel
Save