Skip to content

Commit b85f4d6

Browse files
committed
chore: how about avoiding timeout forced kill
1 parent bc7c0be commit b85f4d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/build/src/plugins/spawn.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ const stopPlugin = async function ({
218218
childProcess.disconnect()
219219
}
220220
try {
221-
childProcess.kill()
221+
childProcess.kill('SIGTERM', {
222+
forceKillAfterTimeout: false,
223+
})
222224
} catch {
223225
// In Node 22, there's a bug where attempting to kill a child process
224226
// results in an EPERM error. Ignore the error in that case.

0 commit comments

Comments
 (0)