summaryrefslogtreecommitdiffstats
path: root/server-msg.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-12-06 20:53:48 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-12-06 20:53:48 +0000
commit83393d3c87b2b0706d1b3b442902a631cc078afa (patch)
tree1ff9f7005acdb28ddb4a35cb59867eb75c0504bc /server-msg.c
parent91d790411ffe98004b3691ce42ac61482e4685c6 (diff)
Only close the tty during exit process and leave freeing it to when the socket is lost.
Diffstat (limited to 'server-msg.c')
-rw-r--r--server-msg.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/server-msg.c b/server-msg.c
index fec44099..4441deda 100644
--- a/server-msg.c
+++ b/server-msg.c
@@ -1,5 +1,5 @@
-/* $Id: server-msg.c,v 1.40 2007-12-06 09:46:23 nicm Exp $ */
+/* $Id: server-msg.c,v 1.41 2007-12-06 20:53:48 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -250,9 +250,8 @@ server_msg_fn_exiting(struct hdr *hdr, struct client *c)
log_debug("exiting msg from client");
c->session = NULL;
-
- if (c->tty.fd != -1)
- tty_free(&c->tty);
+
+ tty_close(&c->tty);
recalculate_sizes();