From ce8e025f335917660237640ad7afc1c9fd913f4a Mon Sep 17 00:00:00 2001 From: "flamingo[bot]" <277372822+flamingo[bot]@users.noreply.github.com> Date: Mon, 24 Aug 2026 05:19:14 +0000 Subject: [PATCH] fix(MESHCENT-008-2): child_process stdout accumulation uses ad-hoc `.result` property instead of the `.str` convention --- modules/service-host.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/service-host.js b/modules/service-host.js index 395e4c8fb..af8f4ac06 100644 --- a/modules/service-host.js +++ b/modules/service-host.js @@ -261,8 +261,8 @@ function serviceHost(serviceName) else { this._checkpid = require('child_process').execFile('/bin/sh', ['sh']); - this._checkpid.stdout.result = ''; - this._checkpid.stdout.on('data', function (chunk) { this.result += chunk.toString(); }); + this._checkpid.stdout.str = ''; + this._checkpid.stdout.on('data', function (chunk) { this.str += chunk.toString(); }); switch(platformType) { case 'init': @@ -274,7 +274,7 @@ function serviceHost(serviceName) } this._checkpid.waitExit(); - if(this._checkpid.stdout.result != '' && parseInt(this._checkpid.stdout.result) == process.pid) + if(this._checkpid.stdout.str != '' && parseInt(this._checkpid.stdout.str) == process.pid) { this.emit('serviceStart'); } @@ -319,4 +319,4 @@ module.exports = serviceHost; module.exports.create = function create(options) { return (new serviceHost(options)); -}; \ No newline at end of file +};