Ignore errors killing child processes

This commit is contained in:
Kevin Sawicki 2014-08-12 15:56:27 -07:00
parent 6084ef52e7
commit fbde059748

View File

@ -138,7 +138,10 @@ class BufferedProcess
.filter (pid) -> /^\d+$/.test(pid)
.map (pid) -> parseInt(pid)
.filter (pid) -> pid isnt parentPid and 0 < pid < Infinity
process.kill(pid) for pid in pidsToKill
for pid in pidsToKill
try
process.kill(pid)
@killProcess()
killProcess: ->