Skip to content

Commit

Permalink
chore: how about avoiding timeout forced kill
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Dec 10, 2024
1 parent bc7c0be commit b85f4d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/build/src/plugins/spawn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ const stopPlugin = async function ({
childProcess.disconnect()
}
try {
childProcess.kill()
childProcess.kill('SIGTERM', {
forceKillAfterTimeout: false,
})
} catch {
// In Node 22, there's a bug where attempting to kill a child process
// results in an EPERM error. Ignore the error in that case.
Expand Down

0 comments on commit b85f4d6

Please sign in to comment.