Sync OpenBSD patchset 520:

Just ignore tty fd errors rather than dying, stops the server dying if the
session is disconnected abrubtly (eg ssh ~.).
This commit is contained in:
Tiago Cunha 2009-11-10 23:27:57 +00:00
parent 36bb298bfa
commit c01816c26d

3
tty.c
View File

@ -1,4 +1,4 @@
/* $Id: tty.c,v 1.172 2009-11-08 23:34:47 tcunha Exp $ */ /* $Id: tty.c,v 1.173 2009-11-10 23:27:57 tcunha Exp $ */
/* /*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -138,7 +138,6 @@ void
tty_error_callback( tty_error_callback(
unused struct bufferevent *bufev, unused short what, unused void *data) unused struct bufferevent *bufev, unused short what, unused void *data)
{ {
fatalx("lost terminal");
} }
void void