From 891ac5e256beff387c5a745dc912f221cc17024e Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 4 Nov 2009 20:50:12 +0000 Subject: Initial changes to move tmux to libevent. This moves the client-side loops are pretty much fully over to event-based only (tmux.c and client.c) but server-side (server.c and friends) treats libevent as a sort of clever poll, waking up after every event to run various things. Moving the server stuff over to bufferevents and timers and so on will come later. --- usr.bin/tmux/window.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr.bin/tmux/window.c') diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c index 1246d3761ba..90fec083417 100644 --- a/usr.bin/tmux/window.c +++ b/usr.bin/tmux/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.34 2009/10/22 12:30:00 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.35 2009/11/04 20:50:11 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -455,10 +455,12 @@ window_pane_destroy(struct window_pane *wp) if (wp->pipe_fd != -1) { buffer_destroy(wp->pipe_buf); close(wp->pipe_fd); + event_del(&wp->pipe_event); } buffer_destroy(wp->in); buffer_destroy(wp->out); + event_del(&wp->event); if (wp->cwd != NULL) xfree(wp->cwd); @@ -543,7 +545,7 @@ window_pane_spawn(struct window_pane *wp, const char *cmd, const char *shell, setenv(envent->name, envent->value, 1); } - sigreset(); + server_signal_clear(); log_close(); if (*wp->cmd != '\0') { -- cgit v1.2.3