summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-11-04 22:47:35 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-11-04 22:47:35 +0000
commit04b901b7d93b7bbd584eb7867ee28c798fe014bb (patch)
treec9d103d505733f08b4263fe9c426ed8db0da2c0e
parent07270dd1c8f05739bd9f3ec8533d8cf97ef1709e (diff)
Tell the client to exit on configuration file error.
-rw-r--r--usr.bin/tmux/server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index 19468ef4cbf..4dd19e66968 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.69 2009/11/04 22:43:11 nicm Exp $ */
+/* $OpenBSD: server.c,v 1.70 2009/11/04 22:47:34 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -193,6 +193,7 @@ error:
c = ARRAY_FIRST(&clients);
server_write_error(c, cause);
+ server_write_client(c, MSG_EXIT, NULL, 0);
xfree(cause);
server_shutdown = 1;