fix: deduplicate logind shutdown inhibitors during silent updates#318
fix: deduplicate logind shutdown inhibitors during silent updates#318zhaohuiw42 merged 1 commit intolinuxdeepin:masterfrom
Conversation
Use a shared refcounted inhibitor so overlapping update/check flows only hold one logind inhibit lock at a time, preventing duplicate org.deepin.dde.Lastore1 shutdown blockers. Bug: https://pms.uniontech.com/bug-view-350063.html
|
CLA Assistant Lite bot: |
deepin pr auto review这份代码 diff 主要对系统的电源抑制锁机制进行了重构,将原有的直接调用 以下是对代码的详细审查意见,分为语法逻辑、代码质量、代码性能和代码安全四个方面: 1. 语法逻辑
2. 代码质量
3. 代码性能
4. 代码安全
总结与建议这份代码改动质量很高,主要解决了资源管理和代码复用的问题。 主要建议:
代码审查结论:通过。逻辑清晰,改进有效,安全性在可控范围内。 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: guonafu, noodle424, zhaohuiw42 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Use a shared ref-counted inhibitor so overlapping update/check flows only hold one logind inhibit lock at a time, preventing duplicate org.deepin.dde.Lastore1 shutdown blockers.
Bug: https://pms.uniontech.com/bug-view-350063.html