From 1b1f0e4f529dbcb5f73ab7d49c5f7908c3b8a866 Mon Sep 17 00:00:00 2001 From: Xirtid Nepla Date: Fri, 15 Apr 2022 07:44:53 +0400 Subject: [PATCH] fix: avoid passing unexpected arguments from forEach to process.kill() --- lib/resolveTaskFn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resolveTaskFn.js b/lib/resolveTaskFn.js index dcb6ad1d0..6cbf9b831 100644 --- a/lib/resolveTaskFn.js +++ b/lib/resolveTaskFn.js @@ -63,7 +63,7 @@ const interruptExecutionOnError = (ctx, execaChildProcess) => { clearInterval(loopIntervalId) const ids = await pidTree(execaChildProcess.pid) - ids.forEach(process.kill) + ids.forEach((id) => process.kill(id)) // The execa process is killed separately in order // to get the `KILLED` status.