mirror of
https://github.com/antonblanchard/microwatt.git
synced 2026-04-14 07:29:47 +00:00
Make sim poll non-blocking
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
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].events = POLLIN;
|
||||
|
||||
ret = poll(fdset, 1, -1);
|
||||
ret = poll(fdset, 1, 0);
|
||||
//fprintf(stderr, "poll returns %d\n", ret);
|
||||
|
||||
if (ret == 1)
|
||||
|
||||
Reference in New Issue
Block a user