diff --git a/lib/process/sandbox.js b/lib/process/sandbox.js index 12bdcff4b..1da6721be 100644 --- a/lib/process/sandbox.js +++ b/lib/process/sandbox.js @@ -52,7 +52,7 @@ module.exports = function(processFile, childPool) { child.removeListener('message', msgHandler); child.removeListener('exit', exitHandler); - if (child.exitCode !== null) { + if (child.exitCode !== null || /SIG.*/.test(child.signalCode)) { childPool.remove(child); } else { childPool.release(child);