aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-08-07 15:39:10 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-08-07 15:39:10 +0000
commite89e70e71575417195285a3ea55c430654f9fc21 (patch)
tree7b2693e599d1137fa818a6ec8330a299de536c4d /tmux.h
parentccaf8724e4c5f1909c8eaf62963ded1265a271b2 (diff)
downloadrtmux-e89e70e71575417195285a3ea55c430654f9fc21.tar.gz
rtmux-e89e70e71575417195285a3ea55c430654f9fc21.tar.bz2
rtmux-e89e70e71575417195285a3ea55c430654f9fc21.zip
If there is an error in the configuration file, don't just exit(1) as this can
cause the client to hang. Instead, send the error message, then mark the client as bad and start a normal shutdown so the server exits once the error is written. This also allows some code duplicating daemon(3) to be trimmed and logging to begin earlier. Prompted by Theo noticing the behaviour on error wasn't documented.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index a35e44a4..c2568907 100644
--- a/tmux.h
+++ b/tmux.h
@@ -900,6 +900,7 @@ struct client {
#define CLIENT_STATUS 0x10
#define CLIENT_REPEAT 0x20 /* allow command to repeat within repeat time */
#define CLIENT_SUSPENDED 0x40
+#define CLIENT_BAD 0x80
int flags;
char *message_string;