(toggle_subshell): fix possible race condition on SIGWINCH handling.
commitc0c95756e47f7a143779be773a2cbe29eea785bc
authorAndrew Borodin <aborodin@vmail.ru>
Sat, 25 Jan 2025 07:16:34 +0000 (25 10:16 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Sat, 25 Jan 2025 15:04:54 +0000 (25 18:04 +0300)
tree78976bbc7500e5c56822a20f1f97cce179e3c1ac
parent81f333126259c5e83a597e39d8fc72a5aad84635
(toggle_subshell): fix possible race condition on SIGWINCH handling.

If a SIGWINCH were handled after setting was_sigwinch to 0 but before
flushing the pipe, the SIGWINCH would be missed.
Fix that using return value of tty_flush_winch().

Thanks Michael Gold <michael@bitplane.org>.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/execute.c