summaryrefslogtreecommitdiffstats
path: root/server.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-12-30 23:16:18 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-12-30 23:16:18 +0000
commitcc42614fa92a0fd93ae359af6562401a2d3d00d7 (patch)
tree48971a7a344f23f480e8d8aa32c928e1bb537a60 /server.c
parent2231e72968629d67575b18979fed13b4f5ad730b (diff)
Change from a per-session stack of buffers to one global stack which is
much more convenient and also simplifies lot of code. This renders copy-buffer useless and makes buffer-limit now a server option. By Tiago Cunha.
Diffstat (limited to 'server.c')
-rw-r--r--server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/server.c b/server.c
index 40667a04..b9b4a290 100644
--- a/server.c
+++ b/server.c
@@ -51,6 +51,8 @@ int server_shutdown;
struct event server_ev_accept;
struct event server_ev_second;
+struct paste_stack global_buffers;
+
int server_create_socket(void);
void server_loop(void);
int server_should_shutdown(void);
@@ -150,6 +152,7 @@ server_start(void)
RB_INIT(&sessions);
RB_INIT(&dead_sessions);
TAILQ_INIT(&session_groups);
+ ARRAY_INIT(&global_buffers);
mode_key_init_trees();
key_bindings_init();
utf8_build();