mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-30 20:35:09 +08:00
修复 killTask 返回值
This commit is contained in:
+1
-1
@@ -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);
|
||||
if (pids.length) {
|
||||
process.kill(pids[0], 2);
|
||||
|
||||
Reference in New Issue
Block a user