Closed williamstein closed 1 year ago
I ended up fixing this by (1) better support for the build by adding some header info from wait.h, so the waitstatus_to_exitcode function gets built (of limited use, since no subprocs yet, obviously). Then I just changed the pager to ttypager using python's input() function, with a patch similar to the one for emscripten (but slightly better, since emscripten/pyodide doesn't have a pager).
Also, compare https://github.com/pyodide/pyodide/issues/1557
Figure out why this happens. This gets hit very easily, e.g., in the terminal:
Obviously creating a subprocess like this isn't the optimal way to do paging in python-wasm; maybe there is an option or flag to python that changes the behavior?