From ba07761de3093445f6dd0d9a247e1c85b2e5451f Mon Sep 17 00:00:00 2001 From: gefan <vilosantos@gmail.com> Date: Tue, 7 Feb 2023 12:33:33 +0800 Subject: [PATCH] Revert "kill zombie processes to reduce memory usage" This reverts commit 19e39f63210d5243ec91369d1e0da80f7dd5a934. --- server/libs/nodeFfprobe/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/libs/nodeFfprobe/index.js b/server/libs/nodeFfprobe/index.js index a2f284cb..bdab89ad 100644 --- a/server/libs/nodeFfprobe/index.js +++ b/server/libs/nodeFfprobe/index.js @@ -18,10 +18,7 @@ module.exports = (function () { proc.stdout.on('data', function (data) { probeData.push(data) }) proc.stderr.on('data', function (data) { errData.push(data) }) - proc.on('exit', code => { - exitCode = code - proc.kill() - }) + proc.on('exit', code => { exitCode = code }) proc.on('error', err => reject(err)) proc.on('close', () => { try {