aboutsummaryrefslogtreecommitdiff
path: root/render.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-05-21 18:00:45 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-05-21 18:00:45 +0000
commit890dbc49cf440cb765a4d758abab6e39dc9b2e73 (patch)
tree279296bb1ffa5050c08214de3ee331d067e25ec1 /render.h
parentnotifications: use \e[22m to disable bold (diff)
fdm: always check for signals after epoll_pwait(), not only on EINTR
This fixes an issue where we, at least on FreeBSD, sometimes get stuck in epoll_pwait() after the shell has exited. It turned out to be because the SIGCHLD signal was delivered at the same time FDs were made readable/writeable. I.e. epoll_pwait() returned a non-zero value even though it should have been interrupted by the SIGCHLD. To avoid having to search the entire signal array *every time* epoll_pwait() returns, add a flag that is set in the signal handler. This tells the FDM to scan the signal array after returning from epoll_pwait().
Diffstat (limited to 'render.h')
0 files changed, 0 insertions, 0 deletions