aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-11-08 23:06:25 +0000
committerTiago Cunha <tcunha@gmx.com>2009-11-08 23:06:25 +0000
commit40b6941c0fab8d922d4f3b563b1287c3c63f2c38 (patch)
treec378d5a0f9b3ee587da6dc85222c3e0e031752f3
parent142962742c844869c961927cb9f4434532c345eb (diff)
downloadrtmux-40b6941c0fab8d922d4f3b563b1287c3c63f2c38.tar.gz
rtmux-40b6941c0fab8d922d4f3b563b1287c3c63f2c38.tar.bz2
rtmux-40b6941c0fab8d922d4f3b563b1287c3c63f2c38.zip
Sync OpenBSD patchset 500:
Tell the client to exit on configuration file error.
-rw-r--r--server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server.c b/server.c
index 9c5e9645..300019ca 100644
--- a/server.c
+++ b/server.c
@@ -1,4 +1,4 @@
-/* $Id: server.c,v 1.220 2009-11-08 23:02:56 tcunha Exp $ */
+/* $Id: server.c,v 1.221 2009-11-08 23:06:25 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -197,6 +197,7 @@ error:
c = ARRAY_FIRST(&clients);
server_write_error(c, cause);
+ server_write_client(c, MSG_EXIT, NULL, 0);
xfree(cause);
server_shutdown = 1;