Permalink
Browse files

Pipe stdout and stderr directly

  • Loading branch information...
1 parent ec9e860 commit 987c99c1d2bab2f573c9efcdabf5a0f35e16552c @camshaft committed Jan 7, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/startup-start
View
@@ -25,10 +25,10 @@ if (process.env.NODE_ENV=="development" || startup.dev) {
var child = child_process.spawn(__dirname+"/../node_modules/.bin/node-dev", [__dirname+"/../lib/dev-wrapper", path]);
child.stdout.on("data", function(data) {
- process.stdout.write(data.toString());
+ process.stdout.write(data);
});
child.stderr.on("data", function(data) {
- process.stdout.write(data.toString());
+ process.stdout.write(data);
});
child.on("exit", function(code) {
exit(code);

0 comments on commit 987c99c

Please sign in to comment.