mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 10:14:36 +02:00
kill zombie processes to reduce memory usage
This commit is contained in:
parent
f9e6655359
commit
19e39f6321
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue