Skip to content

Commit

Permalink
doc: add note about child process line buffering
Browse files Browse the repository at this point in the history
Fixes #4808.
  • Loading branch information
bnoordhuis committed Feb 22, 2013
1 parent ef94521 commit 22d3eff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/api/child_process.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 22d3eff

Please sign in to comment.