From fea7bda58f59b632325db35607c7b999e3974039 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Wed, 23 Sep 2009 15:08:21 +0000 Subject: [PATCH] Sync OpenBSD patchset 348: Don't die if the client is detaching (the tty has been closed) after waking up from locking. --- tty.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tty.c b/tty.c index 14650593..1b0c3b7e 100644 --- a/tty.c +++ b/tty.c @@ -1,4 +1,4 @@ -/* $Id: tty.c,v 1.136 2009-09-23 15:00:09 tcunha Exp $ */ +/* $Id: tty.c,v 1.137 2009-09-23 15:08:21 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -133,6 +133,9 @@ tty_start_tty(struct tty *tty) int what; #endif + if (tty->fd == -1) + return; + #if 0 tty_detect_utf8(tty); #endif