mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +08:00
修复 killTask 返回值
This commit is contained in:
parent
b95fb9cda4
commit
acecf01cbe
|
@ -466,7 +466,7 @@ export function psTree(pid: number): Promise<number[]> {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function killTask(pid: number): Promise<number[]> {
|
export async function killTask(pid: number) {
|
||||||
const pids = await psTree(pid);
|
const pids = await psTree(pid);
|
||||||
if (pids.length) {
|
if (pids.length) {
|
||||||
process.kill(pids[0], 2);
|
process.kill(pids[0], 2);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user