From 83393d3c87b2b0706d1b3b442902a631cc078afa Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 6 Dec 2007 20:53:48 +0000 Subject: Only close the tty during exit process and leave freeing it to when the socket is lost. --- server-msg.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'server-msg.c') 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 @@ -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(); -- cgit