diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-07-14 18:51:42 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-07-14 18:51:42 +0000 |
| commit | 22651ed2217632a34bb9045306fac6ab9a2b3414 (patch) | |
| tree | 77c96d07f79f6c2a10812f1e1e82ab509a52cb9c /subprojects | |
| parent | render: tiocswinsz: don’t remove/close the fd passed as argument (diff) | |
shm: reset buffer pool FD when we close it
This fixes an issue where we ended up "double closing" buffer FDs.
In many cases (especially on compositors with SSDs) this was pretty
rare. And even when it did happen, the FD was normally unused, and
thus nothing bad happened.
However, by quickly resizing the window while using CSDs, it was
fairly easy to trigger this. We sometimes ended up closing the
TIOCSWINCH timer FD while thinking it was a buffer FD, but most of the
times we just ended up closing _another_ buffer’s pool FD, leading to
an immediate disconnect by the compositor.
Diffstat (limited to 'subprojects')
0 files changed, 0 insertions, 0 deletions
