QUERY · ISSUE
popen leaves zombie processes
bug
I discuss this here. The zombie processes make it hard to use if it is called continuously. I reverted to piping to file and reading the output.
CANDIDATE · PULL REQUEST
run-tests: Fix repl test termination
Popen.kill() raises a ProcessLookupError if the process does not exist,
which can happen here since the previous statement already tries to close
the process by sending Ctrl-D to the running repl.
Just swallow the exception silently since it indicates the process has
been closed already which is the desired effect here.
I encountered this with Ubuntu running on WSL, strange it doesn't occur elsewhere. Unless sending Ctrl-D does not do what I think it does?