Skip to content

Commit

Permalink
Merge pull request #1461 from Valiuapp/develop
Browse files Browse the repository at this point in the history
Fix-[Sandbox] If the child process is killed, remove it from the pool.
  • Loading branch information
manast authored Sep 11, 2019
2 parents 129c6e1 + 9048002 commit 229eb83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/process/sandbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 229eb83

Please sign in to comment.