aboutsummaryrefslogtreecommitdiff
path: root/debug.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-02-16 21:40:51 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-02-16 21:44:42 +0000
commit8fa16f616c4ae963f77febe30e6aa167f389b162 (patch)
tree44c75f591fc30b581d5c66fa1a453502f8244933 /debug.h
parentMerge branch 'terminfo-sync-2026' (diff)
main: --server: don’t exit with code 0 on failure
A foot --server instance would exit with code 0, even on failure, if the number of currently open terminal instances were 0. This is because ‘ret’ assumed failure, and then tried to set it to ‘success’ after the even loop had terminated, basted on the server’s current state. Fix by: * set ‘ret’ to success just before entering the event loop * set ‘ret’ to failure when we detect an FDM failure * don’t try to second-guess success/failure after having exited the event loop Closes #943
Diffstat (limited to 'debug.h')
0 files changed, 0 insertions, 0 deletions