From 890dbc49cf440cb765a4d758abab6e39dc9b2e73 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 21 May 2021 20:00:45 +0200 Subject: 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(). --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cbe3eba..1fd34734 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -110,6 +110,9 @@ scaling factor > 1 (https://codeberg.org/dnkl/foot/issues/509). * Crash caused by certain CSI sequences with very large parameter values (https://codeberg.org/dnkl/foot/issues/522). +* Rare occurrences where the window did not close when the shell + exited. Only seen on FreeBSD + (https://codeberg.org/dnkl/foot/issues/534) ### Security -- cgit v1.3