mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
kill zombie processes to reduce memory usage
This commit is contained in:
parent
f9e6655359
commit
19e39f6321
@ -18,7 +18,10 @@ 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.on('exit', code => {
|
||||
exitCode = code
|
||||
proc.kill()
|
||||
})
|
||||
proc.on('error', err => reject(err))
|
||||
proc.on('close', () => {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user