Commit ce03692
zorowk
fix(auth): release daemon descriptors in session child
Close inherited daemon file descriptors in the forked session leader
so old D-Bus connections cannot retain the display manager service
names. Fail fast when D-Bus registration is unavailable and restore
the original service start limit.
Log: DDM 通过 fork 创建 session leader 时,子进程若继承 system D-Bus
fd,旧 DDM 主进程退出后仍可能保留 org.deepin.DisplayManager 服务名,阻
止新 DDM 注册。session child 仅保留标准流和与父进程通信的 pipe,并关闭
其余 daemon fd;DDM 注册 D-Bus 服务或对象失败时立即退出,避免 systemd
显示 active 而 D-Bus 实际不可用。该修复不处理 systemd start-limit-hit;
DDM 被限流停止时必须 reset-failed 后重新启动。
PMS:
Influence: Affects session startup and DDM D-Bus ownership across daemon restarts.1 parent 8487986 commit ce03692
1 file changed
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
25 | 68 | | |
26 | 69 | | |
27 | 70 | | |
| |||
255 | 298 | | |
256 | 299 | | |
257 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
258 | 305 | | |
259 | 306 | | |
260 | 307 | | |
| |||
0 commit comments