diff options
author | Michael Lumish <mlumish@google.com> | 2016-02-04 16:32:03 -0800 |
---|---|---|
committer | Michael Lumish <mlumish@google.com> | 2016-02-04 16:32:03 -0800 |
commit | bcfe99a547f5ab483baf123bd4cb565d062d865c (patch) | |
tree | b4fe02bdb918435cc3cab59fe08af890d3dd0479 /src/node | |
parent | 3c7c76e71386cb0173c6f538c3bf6625a5d52777 (diff) | |
parent | ed53c082385a208576d5fe499285d7889652e853 (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.js | 5 |
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) { |