Skip to content

Commit

Permalink
fix: additional process.kill fallback for bun (#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub authored Apr 6, 2024
1 parent e010f23 commit 5ad9ce3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@
},
"optionalDependencies": {
"@types/fs-extra": "^11.0.4",
"@types/node": ">=20.12.4"
"@types/node": ">=20.12.5"
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@types/minimist": "^1.2.5",
"@types/node": ">=20.11.30",
"@types/which": "^3.0.3",
"@webpod/ps": "^0.0.0-beta.2",
"@webpod/ps": "^0.0.0-beta.3",
"@webpod/ingrid": "^0.0.0-beta.3",
"c8": "^9.1.0",
"chalk": "^5.3.0",
Expand Down
6 changes: 5 additions & 1 deletion src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,11 @@ export async function kill(pid: number, signal?: string) {
}
try {
process.kill(-pid, signal)
} catch (e) {}
} catch (e) {
try {
process.kill(+pid, signal)
} catch (e) {}
}
}

export type LogEntry =
Expand Down

0 comments on commit 5ad9ce3

Please sign in to comment.