cluster: include settings object in 'setup' event
authorRyan Graham <r.m.graham@gmail.com>
Thu, 10 Jul 2014 16:13:27 +0000 (09:13 -0700)
committerFedor Indutny <fedor@indutny.com>
Mon, 14 Jul 2014 20:12:43 +0000 (00:12 +0400)
commit04d6fc2c3feea209a2c20f41ef4aaeebe3c6e0ab
tree4da470bdf4cc6f261fcff74da047e5ef7c39d161
parentb96e38ac3a8b143a1129104569ff1b17acac1df4
cluster: include settings object in 'setup' event

Emits on every call to cluster.setupMaster(), even if no new settings
are given. This is because calling cluster.setupMaster() without
arguments (or with an empty options object) results in the settings
being restored to their defaults.

Signed-off-by: Fedor Indutny <fedor@indutny.com>
doc/api/cluster.markdown
lib/cluster.js
test/simple/test-cluster-setup-master-emit.js [new file with mode: 0644]