[core/input] Handle epoll interrupts

Sometimes epoll poll() calls get interrupted by the system - handle that
more gracefully.
This commit is contained in:
Tobias Witek 2017-10-17 18:53:58 +02:00
parent c041e33bc0
commit 7af57c7fc4

View file

@ -28,7 +28,10 @@ def read_input(inp):
if is_terminated():
return
events = epoll.poll(1)
try:
events = epoll.poll(1)
except Exception:
continue
for fileno, event in events:
line = "["
while "[" in line: