Skip to content

关闭应用报错 #273

@cream1997

Description

@cream1997

使用最新版的electron, 在点击X关闭应用时控制台报错ERROR: The process "10304" not found.
问题出在以下代码标注的位置
function treeKillSync(pid) {
if (process.platform === "win32") {
报错的位置:cp.execSync(taskkill /pid ${pid} /T /F);
} else {
killTree(pidTree({ pid, ppid: process.pid }));
}
}
降低electron版本,报错消失;不清楚问题具体出在哪里,虽然不影响项目运行,但还是希望可以尽快修复,感谢~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions