Also handle EOFError

This commit is contained in:
Kovid Goyal
2020-09-25 18:58:03 +05:30
parent 6c8a4f8d9f
commit 7fe6c7e78b

View File

@@ -56,6 +56,8 @@ def main() -> None:
except KeyboardInterrupt:
p.send_signal(signal.SIGINT)
p.stdout.close()
except EOFError:
p.stdout.close()
raise SystemExit(p.wait())