seat: preserve current VT on transient update failures and fix errno semantics for free-VT lookup#4
seat: preserve current VT on transient update failures and fix errno semantics for free-VT lookup#4Copilot wants to merge 3 commits into
Conversation
|
Hi @Copilot. Thanks for your PR. I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Add active-vt, free-vt, and switch-vt control operations so DDM can stop issuing VT ioctls directly. 添加 active-vt、free-vt 和 switch-vt control 操作,使DDM不再直接发起VT ioctl。 Reuse the existing seat VT state machine for grouped and unmanaged switches. 复用现有 seat VT 状态机处理 grouped 与非托管切换。 Log: 为control socket补齐VT管理能力 Influence: DDM可通过dde-seatd统一查询和切换VT,减少双写状态机。
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Copilot 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 |
|
用不到了 |
|
CLA Assistant Lite bot: |
This PR addresses the remaining review feedback in thread
pullrequestreview-4409920047for the new control-socket VT APIs. The updates are scoped toseatd/seat.cand align behavior with existing VT-state assumptions.Keep
cur_vtstable on VT refresh failuresseat_update_vt(), failures fromterminal_open(0)or invalid results fromterminal_current_vt()no longer overwriteseat->cur_vt.-1/errno, but transient query failures no longer corrupt seat state used by VT signal paths.Preserve accurate
errnobehavior inseat_find_available_vt()errnois now restored only on failure (vt == -1), not unconditionally.errno.Example of the
errnobehavior fix: