cluster: send suicide message on disconnect
authorcjihrig <cjihrig@gmail.com>
Mon, 9 Nov 2015 20:08:50 +0000 (15:08 -0500)
committerJames M Snell <jasnell@gmail.com>
Wed, 23 Dec 2015 16:38:33 +0000 (08:38 -0800)
commit160702c1bc553b299b7eedcca3b82c82aff4638e
treecfc1f42a9be6e364de1469d6c9cf45c6cf0121fb
parented32b9afe2b630a6c2ba73060ae6af6678a02209
cluster: send suicide message on disconnect

This commit causes Worker.prototype.disconnect() to send a
suicide message to the cluster master. The function is also
restructured to eliminate redundant code.

Fixes: https://github.com/nodejs/node/issues/3238
PR-URL: https://github.com/nodejs/node/pull/3720
Reviewed-By: James M Snell <jasnell@gmail.com>
lib/cluster.js
test/parallel/test-regress-GH-3238.js [new file with mode: 0644]