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.