node.js child_process.spawn no stdout unless 'inherit'

后端 未结 1 601
温柔的废话
温柔的废话 2021-02-08 04:03

I\'m trying to capture the stdout from a spawned child_process in node.js (0.10.29).

Right now I\'m just trying with ping

相关标签:
1条回答
  • 2021-02-08 05:00

    There have been lot of issue fixes as well as feature improvements with respect to console printing, on the lines of chunking and buffering. As the issue is no more reproducible, I would assume that this could be due to one of the under-documented behavior of the then Node, based on how many bytes of data is available for printing.

    As this question is still open, I would request originator to see if you are satisfied with this explanation, or are looking for more concrete ones, which case I would need to reproduce this in the said version of node and debug further.

    0 讨论(0)
提交回复
热议问题