Commit ed9d5862 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

force stdin, stdout and stderr to be totally unbuffered (like 'python -u').


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16388 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7297e839
......@@ -324,4 +324,9 @@ def main():
sys.exit(len(result.failures) + len(result.errors))
if __name__ == '__main__':
# Force stdin, stdout and stderr to be totally unbuffered.
sys.stdin = os.fdopen(0, "rb", 0)
sys.stdout = os.fdopen(1, "wb", 0)
sys.stderr = os.fdopen(2, "wb", 0)
main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment