Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
child_process: give forks
stdout
and stderr
Previously using these streams was not possible because of making them use given file descriptors. This solution is more generic - it uses `pipe` function to pipe fork's output into parent's `stdout` and `stderr` unless `silent: true` is set as an option. This doesn't break any existing API and it makes `fork` more compatible with `spawn`. Please note that fork's `stdout` and `stderr` aren't meant to be used as communication channels - use `fork(...).send()` instead. Fixes nodejs#2442.
- Loading branch information