Skip to content

Commit 7ba5063

Browse files
authored
fix(dev): use 'SIGTERM' to kill process on deno (#974)
1 parent de503a3 commit 7ba5063

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/nuxi/src/commands

packages/nuxi/src/commands/dev.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { listen } from 'listhen'
1616
import { getArgs as getListhenArgs, parseArgs as parseListhenArgs } from 'listhen/cli'
1717
import { resolve } from 'pathe'
1818
import { satisfies } from 'semver'
19-
import { isBun, isTest } from 'std-env'
19+
import { isBun, isDeno, isTest } from 'std-env'
2020

2121
import { initialize } from '../dev'
2222
import { renderError } from '../dev/error'
@@ -275,7 +275,7 @@ async function startSubprocess(cwd: string, args: { logLevel: string, clear: boo
275275
let ready: Promise<void> | undefined
276276
const kill = (signal: NodeJS.Signals | number) => {
277277
if (childProc) {
278-
childProc.kill(signal)
278+
childProc.kill(signal === 0 && isDeno ? 'SIGTERM' : signal)
279279
childProc = undefined
280280
}
281281
}

0 commit comments

Comments
 (0)