aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-08-09 17:19:18 +0000
committerTiago Cunha <tcunha@gmx.com>2009-08-09 17:19:18 +0000
commit5b56ea181649793918779dd2684c671072ce4bc9 (patch)
tree1debbcde3af4260db40f82735e2cc968d8dec438 /tmux.h
parent602aae783945d39450788de983318c0da5172315 (diff)
downloadrtmux-5b56ea181649793918779dd2684c671072ce4bc9.tar.gz
rtmux-5b56ea181649793918779dd2684c671072ce4bc9.tar.bz2
rtmux-5b56ea181649793918779dd2684c671072ce4bc9.zip
Sync OpenBSD patchset 225:
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 25b60acc..5dbd06f8 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.404 2009-08-09 16:57:49 tcunha Exp $ */
+/* $Id: tmux.h,v 1.405 2009-08-09 17:19:18 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -899,6 +899,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;