This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
Stdout output is not completely flushed upon process exit. #8329
Closed
Description
I've tried to follow the trail of existing issues in the tracker to deduce whether this is still actively tracked/reported, but was not quite able to. The issues #1669, #3584, #3479, #5275 all relate to this, but are either closed or not exactly this one, so I'm reporting this as a new issue.
If the output of node.js is piped to another application, then the receiving application might not get the whole output when node.js terminates.
Steps to repro:
- Have python and node.js installed and in PATH.
- Download and unzip http://clb.demon.fi/bugs/nodejs_flush_bug.zip
- Run run_test.bat
Observed: The printed output differs on the two cases printed by the test, i.e. the second case does not print "Line 2".
Expected: The output should read identical result in both cases, i.e. "Line 2" should be printed out on the second run as well.