Merge pull request #5008 from vjpai/worker_quit

Provide an RPC to quit the performance benchmarking workers
This commit is contained in:
Michael Lumish 2016-02-04 16:32:03 -08:00
commit 735c99daeb

View File

@ -37,6 +37,11 @@ var os = require('os');
var BenchmarkClient = require('./benchmark_client');
var BenchmarkServer = require('./benchmark_server');
exports.quitWorker = function quitWorker(call, callback) {
callback(null, {});
process.exit(0);
}
exports.runClient = function runClient(call) {
var client;
call.on('data', function(request) {