Skip to content

Commit 1b1f0e4

Browse files
lildeadprinceiiroj
authored andcommittedApr 15, 2022
fix: avoid passing unexpected arguments from forEach to process.kill()
1 parent 46952cb commit 1b1f0e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/resolveTaskFn.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const interruptExecutionOnError = (ctx, execaChildProcess) => {
6363
clearInterval(loopIntervalId)
6464

6565
const ids = await pidTree(execaChildProcess.pid)
66-
ids.forEach(process.kill)
66+
ids.forEach((id) => process.kill(id))
6767

6868
// The execa process is killed separately in order
6969
// to get the `KILLED` status.

0 commit comments

Comments
 (0)
Please sign in to comment.