projects
/
microwatt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48b689b
)
Make sim poll non-blocking
author
Benjamin Herrenschmidt
<benh@kernel.crashing.org>
Tue, 27 Aug 2019 14:09:24 +0000
(
00:09
+1000)
committer
Anton 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
patch
|
blob
|
history
diff --git
a/sim_console_c.c
b/sim_console_c.c
index 0a89fb2e74709f701acf0a07244968d1620b71d7..869c8962505a0b8f847c9a80a2a47cfe68babe42 100644
(file)
--- 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)