From d6fc23a3d6df14282bd88eaa73a9264af2915bf7 Mon Sep 17 00:00:00 2001 From: ehmicky Date: Sun, 15 Dec 2019 13:33:08 +0100 Subject: [PATCH] Add code comment related to setTimeout().unref --- lib/kill.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/kill.js b/lib/kill.js index 813cf2e088..53e7972661 100644 --- a/lib/kill.js +++ b/lib/kill.js @@ -22,6 +22,9 @@ const setKillTimeout = (kill, signal, options, killResult) => { kill('SIGKILL'); }, timeout); + // Guarded because there's no `.unref()` when `execa` is used in the renderer + // process in Electron. This cannot be tested since we don't run tests in + // Electron. // istanbul ignore else if (t.unref) { t.unref();