From 22d3eff8f46d336337aa5d9625f6d5be9104bcff Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 22 Feb 2013 01:19:39 +0100 Subject: [PATCH] doc: add note about child process line buffering Fixes #4808. --- doc/api/child_process.markdown | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/api/child_process.markdown b/doc/api/child_process.markdown index 7c084245313..913a376363d 100644 --- a/doc/api/child_process.markdown +++ b/doc/api/child_process.markdown @@ -6,7 +6,9 @@ Node provides a tri-directional `popen(3)` facility through the `child_process` module. It is possible to stream data through a child's `stdin`, `stdout`, and -`stderr` in a fully non-blocking way. +`stderr` in a fully non-blocking way. (Note that some programs use +line-buffered I/O internally. That doesn't affect node.js but it means +data you send to the child process is not immediately consumed.) To create a child process use `require('child_process').spawn()` or `require('child_process').fork()`. The semantics of each are slightly