unix_console's polled fd need to retry to errno.EWOULDBLOCK

Created originally on Bitbucket by kashirin-alex (Alex Kashirin)

unix_console.py edited online with Bitbucket

Solution to Error:

Python 2.7.13 (8cdda8b8cdb8, Apr 22 2019, 17:50:23)
[PyPy 7.1.1 with GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.

Traceback (most recent call last):
File "/opt/pypy2/lib_pypy/_pypy_interact.py", line 42, in interactive_console
run_multiline_interactive_console(mainmodule, future_flags=future_flags)
File "/opt/pypy2/lib_pypy/pyrepl/simple_interact.py", line 70, in run_multiline_interactive_console
File "/opt/pypy2/lib_pypy/pyrepl/readline.py", line 271, in multiline_input
return reader.readline(returns_unicode=returns_unicode)
File "/opt/pypy2/lib_pypy/pyrepl/reader.py", line 604, in readline
File "/opt/pypy2/lib_pypy/pyrepl/reader.py", line 561, in handle1
event = self.console.get_event(block)
File "/opt/pypy2/lib_pypy/pyrepl/unix_console.py", line 427, in get_event
self.push_char(os.read(self.input_fd, 1))
OSError: [Errno 11] Resource temporarily unavailable

Merge request reports