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. --- server.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server.c') diff --git a/server.c b/server.c index 6c974264..89e5970b 100644 --- a/server.c +++ b/server.c @@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.43 2007-12-04 20:25:17 nicm Exp $ */ +/* $Id: server.c,v 1.44 2007-12-06 09:46:23 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -107,7 +107,7 @@ server_start(const char *path) if (fcntl(fd, F_SETFL, mode|O_NONBLOCK) == -1) fatal("fcntl failed"); if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) - fatal("fcntl failed"); + fatal("fcntl failed"); if (daemon(1, 1) != 0) fatal("daemon failed"); @@ -231,7 +231,7 @@ server_handle_windows(struct pollfd **pfd) if ((w = ARRAY_ITEM(&windows, i)) != NULL) { if (buffer_poll(*pfd, w->in, w->out) != 0) server_lost_window(w); - else + else server_handle_window(w); } (*pfd)++; @@ -371,7 +371,7 @@ server_lost_client(struct client *c) if (ARRAY_ITEM(&clients, i) == c) ARRAY_SET(&clients, i, NULL); } - + tty_free(&c->tty); close(c->fd); -- cgit