src: setup cluster workers before preloading
authorAli Ijaz Sheikh <ofrobots@google.com>
Mon, 30 Mar 2015 17:54:59 +0000 (10:54 -0700)
committerBen Noordhuis <info@bnoordhuis.nl>
Fri, 3 Apr 2015 22:53:45 +0000 (00:53 +0200)
commitb6e22c4bd57831512aef370419db319a3ac15fc2
tree4270afa7c9b6ab676d46e4aea97cd0457cbabcd3
parent65d4d25f525ada66bda66dddd2e9a40144d2ebf3
src: setup cluster workers before preloading

We need to process cluster workers before any preload modules is
executed. Otherwise, the child processes are not correctly disovered
as clustered workers inside the preloaded modules.

Fixes: https://github.com/iojs/io.js/issues/1269
PR-URL: https://github.com/iojs/io.js/pull/1314
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Fedor Indutny <fedor@indutny.com>
src/node.js
test/fixtures/cluster-preload-test.js [new file with mode: 0644]
test/fixtures/cluster-preload.js [new file with mode: 0644]
test/parallel/test-preload.js