mirror of https://github.com/tmux/tmux.git
Sync OpenBSD patchset 348:
Don't die if the client is detaching (the tty has been closed) after waking up from locking.pull/1/head
parent
88f689e167
commit
fea7bda58f
5
tty.c
5
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 <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
|
@ -133,6 +133,9 @@ tty_start_tty(struct tty *tty)
|
||||||
int what;
|
int what;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (tty->fd == -1)
|
||||||
|
return;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
tty_detect_utf8(tty);
|
tty_detect_utf8(tty);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue