From 103748d6adfe1b2d706cb0a1e1a128be5366d655 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 6 Dec 2007 09:46:23 +0000 Subject: Major reorganisation of screen handling. --- tmux.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tmux.c') diff --git a/tmux.c b/tmux.c index 7f8a6272..c6424bd4 100644 --- a/tmux.c +++ b/tmux.c @@ -1,4 +1,4 @@ -/* $Id: tmux.c,v 1.44 2007-11-23 17:52:54 nicm Exp $ */ +/* $Id: tmux.c,v 1.45 2007-12-06 09:46:23 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -141,10 +141,10 @@ void sigreset(void) { struct sigaction act; - + memset(&act, 0, sizeof act); sigemptyset(&act.sa_mask); - + act.sa_handler = SIG_DFL; if (sigaction(SIGPIPE, &act, NULL) != 0) fatal("sigaction failed"); @@ -283,7 +283,7 @@ main(int argc, char **argv) pfd.events = POLLIN; if (BUFFER_USED(cctx.srv_out) > 0) pfd.events |= POLLOUT; - + if (poll(&pfd, 1, INFTIM) == -1) { if (errno == EAGAIN || errno == EINTR) continue; @@ -316,7 +316,7 @@ main(int argc, char **argv) if (hdr.size > INT_MAX - 1) fatalx("bad MSG_ERROR size"); log_warnx("%.*s", - (int) hdr.size, BUFFER_OUT(cctx.srv_in)); + (int) hdr.size, BUFFER_OUT(cctx.srv_in)); buffer_remove(cctx.srv_in, hdr.size); n = 1; goto out; -- cgit v1.2.3