diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-02 00:14:40 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-02 00:14:40 +0000 |
| commit | b27cd9cedfc15c4d8125cea659a1b5cdb5b071cf (patch) | |
| tree | 3e6a817da3c9bc3dfdea25aa6497a2cbb98a9789 /render.c | |
| parent | server: purge shm buffers when terminal is destroyed (diff) | |
timerfd: use non-blocking mode, fixes dead lock
Since we cancel the timers every now and then, there's a (small)
chance that one handler cancels a timer that has triggered in the same
epoll() iteration.
When this happens, read() blocks.
Fix by making the timer FDs non-blocking, and simply returning when we
read 0 bytes.
Diffstat (limited to 'render.c')
0 files changed, 0 insertions, 0 deletions
