Revert "kill zombie processes to reduce memory usage"

This reverts commit 19e39f6321.
This commit is contained in:
gefan 2023-02-07 12:33:33 +08:00
parent 61c32d99e7
commit ba07761de3

View File

@ -18,10 +18,7 @@ module.exports = (function () {
proc.stdout.on('data', function (data) { probeData.push(data) }) proc.stdout.on('data', function (data) { probeData.push(data) })
proc.stderr.on('data', function (data) { errData.push(data) }) proc.stderr.on('data', function (data) { errData.push(data) })
proc.on('exit', code => { proc.on('exit', code => { exitCode = code })
exitCode = code
proc.kill()
})
proc.on('error', err => reject(err)) proc.on('error', err => reject(err))
proc.on('close', () => { proc.on('close', () => {
try { try {