aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node
diff options
context:
space:
mode:
authorGravatar Michael Lumish <mlumish@google.com>2016-02-04 16:32:03 -0800
committerGravatar Michael Lumish <mlumish@google.com>2016-02-04 16:32:03 -0800
commitbcfe99a547f5ab483baf123bd4cb565d062d865c (patch)
treeb4fe02bdb918435cc3cab59fe08af890d3dd0479 /src/node
parent3c7c76e71386cb0173c6f538c3bf6625a5d52777 (diff)
parented53c082385a208576d5fe499285d7889652e853 (diff)
Merge pull request #5008 from vjpai/worker_quit
Provide an RPC to quit the performance benchmarking workers
Diffstat (limited to 'src/node')
-rw-r--r--src/node/performance/worker_service_impl.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node/performance/worker_service_impl.js b/src/node/performance/worker_service_impl.js
index 79baa1ce69..1439249878 100644
--- a/src/node/performance/worker_service_impl.js
+++ b/src/node/performance/worker_service_impl.js
@@ -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) {