Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: avoid passing unexpected arguments from forEach to process.kill()
  • 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
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.