How to pass messages as well as stdout from child to parent in node.js child process module?
You need to set the silent property on the options object when you pass it in to fork() in order for the stdin, stdout and stderr to get piped back to the parent process.
e.g. var n = cp.fork('./child.js', [], { silent: true });