Skip to content

Commit

Permalink
fix: avoid passing unexpected arguments from forEach to process.kill()
Browse files Browse the repository at this point in the history
  • Loading branch information
lildeadprince authored and iiroj committed Apr 15, 2022
1 parent 46952cb commit 1b1f0e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resolveTaskFn.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1b1f0e4

Please sign in to comment.