summaryrefslogtreecommitdiffstats
path: root/server.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-11-27 20:01:30 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-11-27 20:01:30 +0000
commit5cd1d459c5351774dbcda51911278d781384bf0f (patch)
tree8da5e09bbf78870f9ce02c80577b47c188150b17 /server.c
parent2fabfb30b0275a0adc7b5bc0a260ab830d1f41ed (diff)
Three-stage exit process so that [] message printing works on detach etc.
Diffstat (limited to 'server.c')
-rw-r--r--server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.c b/server.c
index 390d122f..9356983e 100644
--- a/server.c
+++ b/server.c
@@ -1,4 +1,4 @@
-/* $Id: server.c,v 1.40 2007-11-27 19:23:34 nicm Exp $ */
+/* $Id: server.c,v 1.41 2007-11-27 20:01:30 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -291,7 +291,7 @@ server_handle_clients(struct pollfd **pfd)
}
(*pfd)++;
- if (c != NULL && c->tty.fd != -1) {
+ if (c != NULL && c->tty.fd != -1 && c->session != NULL) {
if (buffer_poll(*pfd, c->tty.in, c->tty.out) != 0)
server_lost_client(c);
else