Commit e474781
x11bridge: Fix shmem read race & stale shm files
Without the patched libxshmfence, a failed ptrace replacement due to
e.g. `strace glxgears` would leak the shm file.
Fix this and the slightly racy shm data copy in one go, by moving it
into replace_futex_storage() and removing the file before checking for
errors.
Signed-off-by: Asahi Lina <[email protected]>1 parent f8b610e commit e474781
1 file changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1094 | 1094 | | |
1095 | 1095 | | |
1096 | 1096 | | |
1097 | | - | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
1098 | 1103 | | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
1099 | 1109 | | |
1100 | 1110 | | |
1101 | 1111 | | |
| |||
1171 | 1181 | | |
1172 | 1182 | | |
1173 | 1183 | | |
1174 | | - | |
1175 | | - | |
1176 | | - | |
1177 | | - | |
| 1184 | + | |
1178 | 1185 | | |
1179 | 1186 | | |
1180 | 1187 | | |
1181 | | - | |
| 1188 | + | |
| 1189 | + | |
1182 | 1190 | | |
| 1191 | + | |
1183 | 1192 | | |
1184 | 1193 | | |
1185 | 1194 | | |
| |||
0 commit comments