cluster: support options in Worker constructor
authorcjihrig <cjihrig@gmail.com>
Thu, 31 Jul 2014 02:20:52 +0000 (22:20 -0400)
committerFedor Indutny <fedor@indutny.com>
Thu, 31 Jul 2014 20:34:40 +0000 (00:34 +0400)
commitd287b8e58adb7c3b09ca5c0aa8e9420322d40d10
treedf22a8b819744b77c98ca214976ce11bc2881424
parent4b59db008cec1bfcca2783f4b27c630c9c3fdd73
cluster: support options in Worker constructor

This commit moves some common Worker code into the constructor
via support for an options argument.

Reviewed-By: Fedor Indutny <fedor@indutny.com>
lib/cluster.js
test/simple/test-cluster-worker-constructor.js [new file with mode: 0644]