mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 01:39:52 +08:00
修复 killTask 返回值
This commit is contained in:
1 parent
b95fb9cda4
commit
acecf01cbe
1 file changed
+1
-1
+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