From fbde059748852eb245c424a3deaa9d8f4aa02829 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 12 Aug 2014 15:56:27 -0700 Subject: [PATCH] Ignore errors killing child processes --- src/buffered-process.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/buffered-process.coffee b/src/buffered-process.coffee index d219d5fc6..e8260cb46 100644 --- a/src/buffered-process.coffee +++ b/src/buffered-process.coffee @@ -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: ->