Skip to content

Commit e69d477

Browse files
committed
fix: additional process.kill fallback for bun
oven-sh/bun#8787
1 parent e010f23 commit e69d477

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

package-lock.json

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@
5353
},
5454
"optionalDependencies": {
5555
"@types/fs-extra": "^11.0.4",
56-
"@types/node": ">=20.12.4"
56+
"@types/node": ">=20.12.5"
5757
},
5858
"devDependencies": {
5959
"@types/fs-extra": "^11.0.4",
6060
"@types/minimist": "^1.2.5",
6161
"@types/node": ">=20.11.30",
6262
"@types/which": "^3.0.3",
63-
"@webpod/ps": "^0.0.0-beta.2",
63+
"@webpod/ps": "^0.0.0-beta.3",
6464
"@webpod/ingrid": "^0.0.0-beta.3",
6565
"c8": "^9.1.0",
6666
"chalk": "^5.3.0",

src/core.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,11 @@ export async function kill(pid: number, signal?: string) {
589589
}
590590
try {
591591
process.kill(-pid, signal)
592-
} catch (e) {}
592+
} catch (e) {
593+
try {
594+
process.kill(+pid, signal)
595+
} catch (e) {}
596+
}
593597
}
594598

595599
export type LogEntry =

0 commit comments

Comments
 (0)