Skip to content
This repository
Browse code

Release v0.0.22

  • Loading branch information...
commit d19e09c36681f38027f00cc7ed4bb05a277de34e 1 parent fa5f24f
Pedro Teixeira authored

Showing 4 changed files with 9 additions and 11 deletions. Show diff stats Hide diff stats

  1. +4 0 ChangeLog
  2. +1 1  Makefile
  3. +3 9 lib/fugue.js
  4. +1 1  package.json
4 ChangeLog
... ... @@ -1,3 +1,7 @@
  1 +2010.10.05 v0.0.22
  2 +
  3 +* Now workers file descriptors (stdin, stdout, stderr) are the same as the master process, so there is no longer the need to pipe them from worker into master.
  4 +
1 5 2010.10.05 v0.0.20
2 6
3 7 * Fixed some important leaks that were preventing node to end after fugue.stop();
2  Makefile
@@ -3,7 +3,7 @@ all: build test
3 3 build:
4 4 node-waf configure build
5 5
6   -test:
  6 +test: build
7 7 node tools/test.js test_zero_workers test_one_worker test_if_i_can_reach_many_workers test_app_reload test_working_dir test_master_socket_is_protected test_leaks
8 8
9 9 test-fail:
12 lib/fugue.js
@@ -231,15 +231,9 @@ exports.start = function(server, port, host, worker_count, options) {
231 231 var args = process.argv;
232 232
233 233 // spawn worker process
234   - var new_worker = workers[worker_idx] = spawn(args[0], args.slice(1), env);
235   - if (!options.log_file) {
236   - // if worker does not log into file, pipe the worker output here
237   - var worker_log = function(what) {
238   - console.log("WORKER " + worker_idx + ": " + what.toString());
239   - }
240   - new_worker.stdout.on('data', worker_log);
241   - new_worker.stderr.on('data', worker_log);
242   - }
  234 + var stdio = process.binding("stdio");
  235 + var fds = [ stdio.stdinFD, process.stdout.fd, stdio.stderrFD ];
  236 + var new_worker = workers[worker_idx] = spawn(args[0], args.slice(1), {env: env, customFds: fds});
243 237 // listen for when the worker dies and bring him back to life
244 238 new_worker.on('exit', function() {
245 239 log('Child ' + worker_idx + ' died. Respawning it.');
2  package.json
... ... @@ -1,6 +1,6 @@
1 1 { "name" : "fugue"
2 2 , "description" : "Unicorn for node for node"
3   -, "version" : "0.0.21"
  3 +, "version" : "0.0.22"
4 4 , "homepage" : "http://www.metaduck.com/fugue"
5 5 , "author" : "Pedro Teixeira <pedro.teixeira@gmail.com> (http://www.metaduck.com)"
6 6 , "contributors" :

0 comments on commit d19e09c

Please sign in to comment.
Something went wrong with that request. Please try again.