From 620140546208bb9a47ef5ce3a380015b25c48652 Mon Sep 17 00:00:00 2001 From: ehmicky Date: Wed, 18 Dec 2019 22:03:44 +0100 Subject: [PATCH] Add code comment related to setTimeout().unref (#401) --- lib/kill.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/kill.js b/lib/kill.js index 03e4627483..a684e2c043 100644 --- a/lib/kill.js +++ b/lib/kill.js @@ -21,6 +21,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();